when turning timer on, resume remaining time instead of resetting it to initial value

This commit is contained in:
Nicu Hodos 2025-09-28 12:21:45 +02:00
parent db8cb1d16c
commit 5421e52bf4

View File

@ -6,7 +6,7 @@ typedef void (*remaining_callback_t)(int8);
struct : public CallbackAware<remaining_callback_t> {
void operator=(int8 value) {
initial = remaining = value;
remaining = value;
}
operator int8() {
@ -14,7 +14,7 @@ struct : public CallbackAware<remaining_callback_t> {
}
void start() {
remaining = initial + 1;
initial = remaining++;
}
void decrease() {