diff --git a/display.c b/display.c --- a/display.c +++ b/display.c @@ -335,7 +335,7 @@ void display_process(therm_settings_t* s status->state = STATE_IDLE; } else { - user_input_signed((int16_t*)(&set->val.temp_offset)); + user_input_signed(&set->val.temp_offset); } // Event Handler @@ -354,7 +354,7 @@ void display_process(therm_settings_t* s draw_setpoint(status); status->pid_enabled = 1; - status->setpoint = set->val.setpoint_brew; + status->setpoint = set->val.setpoint_brew; // Button handler if(SW_BTN_PRESSED) { @@ -380,7 +380,7 @@ void display_process(therm_settings_t* s //ssd1306_drawlogo(); draw_setpoint(status); status->pid_enabled = 1; - status->setpoint = set->val.setpoint_brew; + status->setpoint = set->val.setpoint_brew; // Button handler if(SW_BTN_PRESSED) { @@ -567,4 +567,10 @@ static void draw_setpoint(therm_status_t temp_last = status->temp; } +void display_startup_screen() { + ssd1306_clearscreen(); + ssd1306_drawstring("therm v0.2", 1, 40); + ssd1306_drawstring("protofusion.org/therm", 3, 0); +} + // vim:softtabstop=4 shiftwidth=4 expandtab