Use confirm instead of enter key when stepping to a new beer or fridge temperature

Mon, 01 Dec 2014 14:15:22 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 01 Dec 2014 14:15:22 +0100
changeset 302
3d2bd47f35b4
parent 301
dbaed96a4a0c
child 303
19a9a3912d03

Use confirm instead of enter key when stepping to a new beer or fridge temperature

thermferm/thermferm.c file | annotate | diff | comparison | revisions
--- a/thermferm/thermferm.c	Sat Nov 29 21:03:31 2014 +0100
+++ b/thermferm/thermferm.c	Mon Dec 01 14:15:22 2014 +0100
@@ -483,7 +483,7 @@
 				temp_temp += 0.1;
 			    go_menu(MENU_FRIDGE_TEMP);
 			}
-			if (key == KEY_ENTER) {
+			if (key == KEY_CONFIRM) {
 			    if (temp_temp != current_unit->fridge_set) {
 				syslog(LOG_NOTICE, "Fridge temperature changed from %.1f to %.1f degrees from the panel", current_unit->fridge_set, temp_temp);
 				current_unit->fridge_set = temp_temp;
@@ -523,7 +523,7 @@
 				temp_temp += 0.1;
 			    go_menu(MENU_BEER_TEMP);
 			}
-			if (key == KEY_ENTER) {
+			if (key == KEY_CONFIRM) {
 			    if (temp_temp != current_unit->beer_set) {
 				syslog(LOG_NOTICE, "Beer temperature changed from %.1f to %.1f degrees from the panel", current_unit->beer_set, temp_temp);
 				current_unit->beer_set = temp_temp;

mercurial