Commit 3c897a07 authored by Philippe Kalaf's avatar Philippe Kalaf

compilation on mbed-cli

parent 10fcca93
Pipeline #38675167 failed with stages
in 1 minute and 1 second
ROOT=.
TARGET=LPC1768
TOOLCHAIN=GCC_ARM
......@@ -72,7 +72,7 @@ Timer js_timer;
// Timer for power saving mode
Timer power_save_timer;
bool power_save_state;
bool power_save;
#define POWER_SAVE_TIMEOUT_S 600
// Main Brew Control class holding all brewing features and logic
......@@ -274,7 +274,7 @@ void draw_menu()
// Draw standby screen
else
{
if (power_save_state)
if (power_save)
{
LCD.locate(5,16);
LCD.printf("POWER");
......@@ -503,13 +503,13 @@ void enter_power_save()
// turn on LCD power saving
//LCD.power_save(1);
power_save_state = 1;
power_save = 1;
menu_level = L_STANDBY;
}
void exit_power_save()
{
power_save_state = 0;
power_save = 0;
power_save_timer.reset();
// go back to previously set temperature
set_params(M_BREW_SETTINGS);
......@@ -520,7 +520,7 @@ void exit_power_save()
// should get called everytime a power saving reset event happens
void check_power_save()
{
if(power_save_state)
if(power_save)
exit_power_save();
else
power_save_timer.reset();
......@@ -567,7 +567,7 @@ int main()
js_timer.start();
power_save_timer.start();
power_save_state = 0;
power_save = 0;
// We want to call the menu_handler in another thread
menu_thread.start(callback(menu_handler));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment