diff --git a/lambda/display.c b/lambda/display.c index 26a3db4..079334d 100644 --- a/lambda/display.c +++ b/lambda/display.c @@ -66,9 +66,7 @@ return; } position++; - if (position > MENU_LAST_TEXT || - (position == MENU_LAST_TEXT && - strlen(lastLine0) == 0 && strlen(lastLine1) == 0)) { + if (position > MENU_LAST_TEXT) { position = MENU_OFF; } if (position == MENU_LAST_TEXT) { diff --git a/lambda/rules.c b/lambda/rules.c index 03b6956..afb9da7 100644 --- a/lambda/rules.c +++ b/lambda/rules.c @@ -50,7 +50,7 @@ /** * Reminds to close the air gate when the fire is burning down and the - * temperature went below 400°C. + * temperature went below 400°C (no more flames). */ static void airgateClose(bool* const fired, int8_t const dir, Measurement const meas) { @@ -78,7 +78,7 @@ } /** - * Notifies that the might have gone out at the beginning of building up. + * Notifies that the fire might have gone out at the beginning of building up. */ static void fireOut(bool* const fired, int8_t const dir, Measurement const meas) { @@ -95,7 +95,7 @@ /** * Array of rules. */ -Rule rules[] = { +static Rule rules[] = { {false, airgate50}, {false, airgate25}, {false, airgateClose},