diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2023-12-29 14:35:36 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2023-12-30 12:55:59 -0500 |
commit | 92fe8f15b82d7c7ccb7f8ac6552259adeac471fb (patch) | |
tree | a39197b16bc0f4228458066ae101f6a06a768f49 /klippy/extras/mpu9250.py | |
parent | 25bc649cd263683855e892433ef3f615903d99c7 (diff) | |
download | kutter-92fe8f15b82d7c7ccb7f8ac6552259adeac471fb.tar.gz kutter-92fe8f15b82d7c7ccb7f8ac6552259adeac471fb.tar.xz kutter-92fe8f15b82d7c7ccb7f8ac6552259adeac471fb.zip |
buttons: Fix possible ordering issue if a callback blocks
Invoke button callbacks directly from the background thread. This
ensures that button notifications are delivered and delivered in the
correct order. Previously, if a callback blocked, it was possible a
new update could start before the previous update was completed, which
could lead to lost events or out of order events.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/mpu9250.py')
0 files changed, 0 insertions, 0 deletions