Kevin O'Connor 03f69cd81a tmc: Query latest value during _init_registers()
The set_register() code may block, and it therefore may be possible
that the loop in _init_registers() could occur in parallel with other
updates.  That could result in a "OrderedDict mutated during
iteration" error.

Avoid the error by querying the latest value during each iteration of
the loop.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2023-11-28 21:24:41 -05:00
..
2023-03-01 20:43:53 -05:00
2023-06-21 21:17:17 -04:00
2023-11-02 13:08:53 -04:00
2022-09-03 12:23:55 -04:00
2023-08-01 20:32:03 -04:00
2022-05-13 13:53:17 -04:00
2022-04-18 11:07:05 -04:00
2022-06-30 13:56:35 -04:00
2023-03-20 10:58:25 -04:00
2023-06-16 16:38:42 -04:00
2023-06-16 16:38:42 -04:00
2023-03-20 10:58:25 -04:00
2023-03-20 10:58:25 -04:00