Commit 1ea906d
authored
p402: Fix missing fallback behavior in check_statusword(). (#277)
The docstring for BaseNode402.check_statusword() promises it will fall
back to SDO if the TPDO is not configured as periodic. However, that
actually only happens when there is no TPDO for the Statusword at all.
Fix that small detail, as the code using this function relies on
getting an up-to-date value and on the implicit throttling caused by
the SDO round-trip time.1 parent 0f13cfb commit 1ea906d
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
477 | 477 | | |
478 | 478 | | |
479 | 479 | | |
480 | | - | |
| 480 | + | |
481 | 481 | | |
482 | | - | |
| 482 | + | |
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
| 497 | + | |
| 498 | + | |
497 | 499 | | |
498 | 500 | | |
499 | 501 | | |
| |||
0 commit comments