thermferm/thermferm.c

changeset 406
44566f986f76
parent 405
0ad4cb5f4afa
child 418
0bfe08c7ba6e
equal deleted inserted replaced
405:0ad4cb5f4afa 406:44566f986f76
266 if (current_unit->mode == UNITMODE_PROFILE) { 266 if (current_unit->mode == UNITMODE_PROFILE) {
267 /* 267 /*
268 * Set a sane default until it will be overruled by the 268 * Set a sane default until it will be overruled by the
269 * main processing loop. 269 * main processing loop.
270 */ 270 */
271 current_unit->prof_target = 20.0; 271 current_unit->prof_target_lo = 19.8;
272 current_unit->prof_target_hi = 20.2;
273 current_unit->prof_fridge_mode = 0;
272 } 274 }
273 } 275 }
274 276
275 277
276 #endif 278 #endif
1349 case UNITMODE_BEER: lcd_buf_write(row++, "Target %.1f %cC ", unit->beer_set, 0xdf); 1351 case UNITMODE_BEER: lcd_buf_write(row++, "Target %.1f %cC ", unit->beer_set, 0xdf);
1350 break; 1352 break;
1351 case UNITMODE_FRIDGE: lcd_buf_write(row++, "Target %.1f %cC ", unit->fridge_set, 0xdf); 1353 case UNITMODE_FRIDGE: lcd_buf_write(row++, "Target %.1f %cC ", unit->fridge_set, 0xdf);
1352 break; 1354 break;
1353 case UNITMODE_PROFILE: if (unit->prof_state != PROFILE_OFF) 1355 case UNITMODE_PROFILE: if (unit->prof_state != PROFILE_OFF)
1354 lcd_buf_write(row++, "Target %.1f %cC ", unit->prof_target, 0xdf); 1356 lcd_buf_write(row++, "Tgt %.1f..%.1f %cC ", unit->prof_target_lo, unit->prof_target_hi, 0xdf);
1355 else 1357 else
1356 lcd_buf_write(row++, "Target not set "); 1358 lcd_buf_write(row++, "Target not set ");
1357 break; 1359 break;
1358 default: lcd_buf_write(row++, "Target not set "); 1360 default: lcd_buf_write(row++, "Target not set ");
1359 } 1361 }

mercurial