@@ -163,12 +163,15 @@ void update_temp() {
state = STATE_TC_ERROR;
temp = 0;
temp_frac = 0;
}
else
{
if(state == STATE_TC_ERROR)
state = STATE_IDLE;
uint8_t sign = temp >> 15;// top bit is sign
temp_pre = temp_pre >> 2; // Drop 2 lowest bits
temp_frac = temp_pre & 0b11; // get fractional part
temp_frac *= 25; // each bit is .25 a degree, up to fixed point
temp_pre = temp_pre >> 2; // Drop 2 fractional bits
@@ -434,13 +437,13 @@ void machine()
ssd1306_drawlogo();
switch(goto_mode) {
case 2:
ssd1306_DrawString("-> brew ", 1, 40);
ssd1306_DrawString("-> heat ", 1, 40);
} break;
case 1:
ssd1306_DrawString("-> setup ", 1, 40);
@@ -637,16 +640,16 @@ void machine()
case STATE_SETBOOTTOBREW:
// Write text to OLED
// [ therm :: set windup ]
// [ g = 12 ]
ssd1306_DrawString("Boot to Brew", 0, 40);
ssd1306_DrawString("Start on Boot", 0, 40);
ssd1306_DrawString("btb=", 1, 45);
ssd1306_DrawString("sob=", 1, 45);
if(boottobrew)
ssd1306_DrawString("Enabled ", 1, 70);
ssd1306_DrawString("Disabled", 1, 70);
Status change: