diff --git a/display.c b/display.c --- a/display.c +++ b/display.c @@ -497,15 +497,22 @@ void display_process(therm_settings_t* s // [ 30 => 120 C ] ssd1306_DrawString("Error: ", 0, 0); + char tempstr[6]; + itoa(status->tc_errno, tempstr, 10); + ssd1306_DrawString(tempstr, 0, 57); + if(status->tc_errno == 1) - ssd1306_DrawString(" Check Sensor (1)", 1, 0); + ssd1306_DrawString(" TC Open Circuit", 1, 0); else if(status->tc_errno == 4) - ssd1306_DrawString(" Check Sensor (2)", 1, 0); + ssd1306_DrawString(" TC Short to GND", 1, 0); + else if(status->tc_errno == 8) + ssd1306_DrawString(" TC Short to VCC", 1, 0); else ssd1306_DrawString("#?, Unknown Error", 1, 0); ssd1306_DrawString(" ", 2, 0); - ssd1306_DrawString("Press -> to ignore", 3, 0); + ssd1306_DrawString("-> to ignore all or", 2, 0); + ssd1306_DrawString("press to continue", 3, 0); // Button handler if(SW_BTN_PRESSED) {