newAM / idasen

Python API and CLI for the ikea IDÅSEN desk.
MIT License
119 stars 20 forks source link

Interrupt movement routine when desk stops moving #352

Closed abmantis closed 11 months ago

abmantis commented 11 months ago

If the desk button is pressed while the desk is being moved from the library, the desk stops. Without this change the lib will keep sending movement commands and the desk would not be controllable anymore, until those commands are interrupted.

This change makes it so that the lib automatically detects that movement has seized and so stops sending commands.

coveralls commented 11 months ago

Coverage Status

coverage: 88.122% (+0.2%) from 87.887% when pulling 2ebe02a6c08137975599bf68a17b9ea0553522d8 on abmantis:stop_move_on_button_press into 7b286e48d7924d4bfe9df616c5b35dcb91a36506 on newAM:main.

newAM commented 11 months ago

Included in https://github.com/newAM/idasen/releases/tag/v0.10.3

abmantis commented 11 months ago

thanks!