Give AssemblyBase more functionality: Support one-by-one commanding for childrend instead of sending all mode messages on one shot
This commit is contained in:
parent
297ec261ce
commit
b13b5b456d
@ -92,9 +92,14 @@ void AssemblyBase::handleChildrenTransition() {
|
|||||||
if (commandsOutstanding <= 0) {
|
if (commandsOutstanding <= 0) {
|
||||||
switch (internalState) {
|
switch (internalState) {
|
||||||
case STATE_NEED_SECOND_STEP:
|
case STATE_NEED_SECOND_STEP:
|
||||||
|
{
|
||||||
internalState = STATE_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;
|
return;
|
||||||
|
}
|
||||||
case STATE_OVERWRITE_HEALTH: {
|
case STATE_OVERWRITE_HEALTH: {
|
||||||
internalState = STATE_SINGLE_STEP;
|
internalState = STATE_SINGLE_STEP;
|
||||||
ReturnValue_t result = commandChildren(mode, submode);
|
ReturnValue_t result = commandChildren(mode, submode);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user