thermferm/thermferm.c

changeset 302
3d2bd47f35b4
parent 297
a70527a4e56a
child 307
249e7d506069
equal deleted inserted replaced
301:dbaed96a4a0c 302:3d2bd47f35b4
481 if (key == KEY_UP) { 481 if (key == KEY_UP) {
482 if (temp_temp < current_unit->temp_set_max) 482 if (temp_temp < current_unit->temp_set_max)
483 temp_temp += 0.1; 483 temp_temp += 0.1;
484 go_menu(MENU_FRIDGE_TEMP); 484 go_menu(MENU_FRIDGE_TEMP);
485 } 485 }
486 if (key == KEY_ENTER) { 486 if (key == KEY_CONFIRM) {
487 if (temp_temp != current_unit->fridge_set) { 487 if (temp_temp != current_unit->fridge_set) {
488 syslog(LOG_NOTICE, "Fridge temperature changed from %.1f to %.1f degrees from the panel", current_unit->fridge_set, temp_temp); 488 syslog(LOG_NOTICE, "Fridge temperature changed from %.1f to %.1f degrees from the panel", current_unit->fridge_set, temp_temp);
489 current_unit->fridge_set = temp_temp; 489 current_unit->fridge_set = temp_temp;
490 } 490 }
491 go_menu(MENU_MODE_FRIDGE); 491 go_menu(MENU_MODE_FRIDGE);
521 if (key == KEY_UP) { 521 if (key == KEY_UP) {
522 if (temp_temp < current_unit->temp_set_max) 522 if (temp_temp < current_unit->temp_set_max)
523 temp_temp += 0.1; 523 temp_temp += 0.1;
524 go_menu(MENU_BEER_TEMP); 524 go_menu(MENU_BEER_TEMP);
525 } 525 }
526 if (key == KEY_ENTER) { 526 if (key == KEY_CONFIRM) {
527 if (temp_temp != current_unit->beer_set) { 527 if (temp_temp != current_unit->beer_set) {
528 syslog(LOG_NOTICE, "Beer temperature changed from %.1f to %.1f degrees from the panel", current_unit->beer_set, temp_temp); 528 syslog(LOG_NOTICE, "Beer temperature changed from %.1f to %.1f degrees from the panel", current_unit->beer_set, temp_temp);
529 current_unit->beer_set = temp_temp; 529 current_unit->beer_set = temp_temp;
530 } 530 }
531 go_menu(MENU_MODE_BEER); 531 go_menu(MENU_MODE_BEER);

mercurial