In behavior.c at line 487, set_save_settings() is called before constraining the new volume value between 0 and 8 inclusive. This causes a call to AsebaNative__system_settings_flash() at shutdown (main.c line 295) even if the volume hasn't been changed.
In behavior.c at line 487,
set_save_settings()
is called before constraining the new volume value between 0 and 8 inclusive. This causes a call toAsebaNative__system_settings_flash()
at shutdown (main.c line 295) even if the volume hasn't been changed.I suggest to move the tests as follows:
There is the same problem with
SET_MOTOR
(correction
between -50 and 50).