thermferm/thermferm.c

changeset 571
6f8eda55ec2c
parent 570
1e0192b295b9
child 572
0df7fcb36b76
--- a/thermferm/thermferm.c	Mon Jan 14 22:46:27 2019 +0100
+++ b/thermferm/thermferm.c	Sat Jan 19 11:38:09 2019 +0100
@@ -1484,10 +1484,9 @@
 					if (valid_step == TRUE) {
 					    unit->prof_percent = (100 * run_minutes) / tot_minutes;
 					    if (((minutes == 10) || (minutes == 40)) && (seconds == 1)) {
-					    	syslog(LOG_NOTICE, "Profile `%s' running %dd %02d:%02d in step %d, %d%% done, target %s %.3f..%.3f degrees", 
+					    	syslog(LOG_NOTICE, "Profile `%s' running %dd %02d:%02d in step %d, %d%% done, fridge/beer %d%% %.3f..%.3f degrees", 
 							unit->profile_name, run_hours / 24, run_hours % 24, run_minutes % 60, current_step, 
-							unit->prof_percent, unit->prof_fridge_mode ? (char *)"air":(char *)"beer",
-							unit->prof_target_lo, unit->prof_target_hi);
+							unit->prof_percent, unit->prof_fridge_mode, unit->prof_target_lo, unit->prof_target_hi);
 						unit->mqtt_flag |= MQTT_FLAG_DATA;
 					    }
 					} else {

mercurial