Commit b189950
committed
If no new commands are received, halt
Currently, we only exit the main loop when no new command is received
anymore (already taking any configured receive timeout into account).
However, if we don't receive a new command anymore, that should always
be considerd an unintentional interruption of the control flow. In that
case, we should stop program execution, as interrupting the
communication was an unexpected error event.
If interrupting the communication in order to continue with the rest of
the program was intentional, users will send a stop command. This will
end the main control loop at another code branch leading to a clean
shutdown of the external_control part in order to be able to continue
with the rest of the program.1 parent 53e3577 commit b189950
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1003 | 1003 | | |
1004 | 1004 | | |
1005 | 1005 | | |
1006 | | - | |
| 1006 | + | |
| 1007 | + | |
1007 | 1008 | | |
1008 | 1009 | | |
1009 | 1010 | | |
| |||
0 commit comments