Fixed compiling on a real RPi.

Thu, 17 Sep 2015 20:54:34 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 17 Sep 2015 20:54:34 +0200
changeset 406
44566f986f76
parent 405
0ad4cb5f4afa
child 407
ee8f851b4d93

Fixed compiling on a real RPi.

thermferm/thermferm.c file | annotate | diff | comparison | revisions
--- a/thermferm/thermferm.c	Thu Sep 17 20:45:01 2015 +0200
+++ b/thermferm/thermferm.c	Thu Sep 17 20:54:34 2015 +0200
@@ -268,7 +268,9 @@
 	 * Set a sane default until it will be overruled by the
 	 * main processing loop.
 	 */
-	current_unit->prof_target = 20.0;
+	current_unit->prof_target_lo = 19.8;
+	current_unit->prof_target_hi = 20.2;
+	current_unit->prof_fridge_mode = 0;
     }
 }
 
@@ -1351,7 +1353,7 @@
 			case UNITMODE_FRIDGE:	lcd_buf_write(row++, "Target %.1f %cC     ", unit->fridge_set, 0xdf);
 						break;
 			case UNITMODE_PROFILE:	if (unit->prof_state != PROFILE_OFF)
-						    lcd_buf_write(row++, "Target %.1f %cC     ", unit->prof_target, 0xdf);
+						    lcd_buf_write(row++, "Tgt %.1f..%.1f %cC   ", unit->prof_target_lo, unit->prof_target_hi, 0xdf);
 						else
 						    lcd_buf_write(row++, "Target not set     ");
 						break;

mercurial