Adaptions to make shared power lines possible #57

Merged
muellerr merged 5 commits from spahr/shared into main 2025-04-28 13:50:31 +02:00
6 changed files with 37 additions and 15 deletions
Showing only changes of commit b13b5b456d - Show all commits

View File

@ -92,9 +92,14 @@ void AssemblyBase::handleChildrenTransition() {
if (commandsOutstanding <= 0) {
switch (internalState) {
case STATE_NEED_SECOND_STEP:
{
internalState = STATE_SECOND_STEP;
commandChildren(targetMode, targetSubmode);
ReturnValue_t result = commandChildren(targetMode, targetSubmode);
if(result == NEED_SECOND_STEP) {
internalState = STATE_NEED_SECOND_STEP;
}
return;
}
case STATE_OVERWRITE_HEALTH: {
internalState = STATE_SINGLE_STEP;
ReturnValue_t result = commandChildren(mode, submode);