Commit 4b95870
authored
ds402: Skip explicit change to SWITCHED ON state. (#249)
The BaseNode402.homing() method tries to enter state SWITCHED ON upon
entry. That's unnecessary, the application should handle these
transitions. But more importantly, it actually fails in many cases,
namely if the previous state is SWITCH ON DISABLED, the default
power-up state of most devices. There is an automatic way to reach
OPERATION ENABLED over multiple intermediate steps, but the library
does not know how to reach SWITCHED ON from any other state than
OPERATION ENABLED or READY TO SWITCH ON. In addition, setting the
op_mode property will already change to SWITCHED ON only if coming
from OPERATION ENABLED (which is usually a good idea to avoid
unexpected movement).
Note that switching the operation mode to HOMING is actually safe in
any power state.1 parent 6ba36dc commit 4b95870
1 file changed
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
310 | 309 | | |
311 | 310 | | |
312 | 311 | | |
| |||
0 commit comments