Commit e5355f4
p402: Make HOMING_TIMEOUT_DEFAULT configurable per instance. (#258)
When the HOMING_TIMEOUT_DEFAULT class attribute is overridden as an
object attribute, the argument default value definition in homing()
still uses the old value from the class attribute. Check the argument
and apply the default value at runtime to pick up the updated default
timeout if the argument is omitted.
Co-authored-by: André Filipe Silva <af-silva@users.noreply.github.com>1 parent c161ab3 commit e5355f4
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
| 319 | + | |
| 320 | + | |
319 | 321 | | |
320 | 322 | | |
321 | 323 | | |
| |||
335 | 337 | | |
336 | 338 | | |
337 | 339 | | |
338 | | - | |
| 340 | + | |
339 | 341 | | |
340 | 342 | | |
341 | 343 | | |
| |||
0 commit comments