initialize timers array #943

This commit is contained in:
eshifri
2021-10-25 12:36:49 +11:00
committed by Peter Feerick
parent 4e571c1325
commit e4b5460e5c
+5 -1
View File
@@ -1550,7 +1550,11 @@ void ModelSetupPage::build(FormWindow * window)
// Timer start value
new StaticText(window, grid.getLabelSlot(true), "Start", 0, COLOR_THEME_PRIMARY1);
grid.nextLine();
new TimeEdit(group, timerGrid.getSlot(), 0, TIMER_MAX, GET_SET_DEFAULT(timer->start));
new TimeEdit(group, timerGrid.getSlot(), 0, TIMER_MAX, GET_DEFAULT(timer->start),
[timer, i](int32_t value) {
timer->start = value;
timerSet(i, value);
});
timerGrid.nextLine();
// Timer minute beep