Timers display bug on main view
This commit is contained in:
@@ -340,8 +340,8 @@ void displayTimers()
|
|||||||
// Main timer
|
// Main timer
|
||||||
if (g_model.timers[0].mode) {
|
if (g_model.timers[0].mode) {
|
||||||
TimerState & timerState = timersStates[0];
|
TimerState & timerState = timersStates[0];
|
||||||
putsTimer(TIMERS_X, TIMER1_Y, timerState.val, TIMEHOUR|MIDSIZE|LEFT, TIMEHOUR|MIDSIZE|LEFT);
|
|
||||||
putsTimerMode(TIMERS_X, TIMER1_Y-6, g_model.timers[0].mode, SMLSIZE);
|
putsTimerMode(TIMERS_X, TIMER1_Y-6, g_model.timers[0].mode, SMLSIZE);
|
||||||
|
putsTimer(TIMERS_X, TIMER1_Y, timerState.val, TIMEHOUR|MIDSIZE|LEFT, TIMEHOUR|MIDSIZE|LEFT);
|
||||||
if (g_model.timers[0].persistent) lcd_putcAtt(TIMERS_R, TIMER1_Y+1, 'P', SMLSIZE);
|
if (g_model.timers[0].persistent) lcd_putcAtt(TIMERS_R, TIMER1_Y+1, 'P', SMLSIZE);
|
||||||
if (timerState.val < 0) {
|
if (timerState.val < 0) {
|
||||||
if (BLINK_ON_PHASE) {
|
if (BLINK_ON_PHASE) {
|
||||||
@@ -353,8 +353,8 @@ void displayTimers()
|
|||||||
// Second timer
|
// Second timer
|
||||||
if (g_model.timers[1].mode) {
|
if (g_model.timers[1].mode) {
|
||||||
TimerState & timerState = timersStates[1];
|
TimerState & timerState = timersStates[1];
|
||||||
putsTimer(TIMERS_X, TIMER2_Y, timerState.val, TIMEHOUR|MIDSIZE|LEFT, TIMEHOUR|MIDSIZE|LEFT);
|
|
||||||
putsTimerMode(TIMERS_X, TIMER2_Y-6, g_model.timers[1].mode, SMLSIZE);
|
putsTimerMode(TIMERS_X, TIMER2_Y-6, g_model.timers[1].mode, SMLSIZE);
|
||||||
|
putsTimer(TIMERS_X, TIMER2_Y, timerState.val, TIMEHOUR|MIDSIZE|LEFT, TIMEHOUR|MIDSIZE|LEFT);
|
||||||
if (g_model.timers[1].persistent) lcd_putcAtt(TIMERS_R, TIMER2_Y+1, 'P', SMLSIZE);
|
if (g_model.timers[1].persistent) lcd_putcAtt(TIMERS_R, TIMER2_Y+1, 'P', SMLSIZE);
|
||||||
if (timerState.val < 0) {
|
if (timerState.val < 0) {
|
||||||
if (BLINK_ON_PHASE) {
|
if (BLINK_ON_PHASE) {
|
||||||
|
|||||||
Reference in New Issue
Block a user