Commit ea0efa4
authored
nmt: Fix NmtSlave on a node without a heartbeat producer time. (#672)
The NMT state transition from INITIALISING to PRE-OPERATIONAL causes
the heartbeat to start automatically if the parameter is non-zero in
object 0x1017:00. This check however raises an exception if the
object does not even exist.
Cover this state in tests and explicitly ignore a KeyError when asking
for the object.1 parent 9aab2d4 commit ea0efa4
2 files changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
234 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
235 | 238 | | |
236 | 239 | | |
237 | 240 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
196 | 204 | | |
197 | 205 | | |
198 | 206 | | |
0 commit comments