CarpeNoctem / Sensor-Watch

A board replacement for the classic Casio F-91W wristwatch
Other
1 stars 0 forks source link

Simple Tide - Enhancement - TO reverts to display if in settings #9

Open CarpeNoctem opened 1 week ago

CarpeNoctem commented 1 week ago

Change the timeout behavior to go to the tide display if in the settings when the timeout event occurs. Otherwise go back to watch face zero as we do already. Currently, a timeout will send us to watch face zero, regardless.

CarpeNoctem commented 1 week ago

I tried this, with the below code. The timeout behaviour from settings back to display worked fine. But then there was never another timeout event. Even going to another face and back to this one, a timeout didn't seem to happen.

if (state->display_type < TIDE_DISPLAY_TIDE_TIME) {
    state->display_type = TIDE_DISPLAY_TIDE_TIME;
    _simple_tide_face_update(settings, state);
} else {
    movement_move_to_face(0);
}

Can come back to this some other day.