thermferm/thermferm.c

changeset 571
6f8eda55ec2c
parent 570
1e0192b295b9
child 572
0df7fcb36b76
equal deleted inserted replaced
570:1e0192b295b9 571:6f8eda55ec2c
1482 // fprintf(stdout, " %s %02d:%02d\n", valid_step ? "TRUE":"FALSE", minutes, seconds); 1482 // fprintf(stdout, " %s %02d:%02d\n", valid_step ? "TRUE":"FALSE", minutes, seconds);
1483 1483
1484 if (valid_step == TRUE) { 1484 if (valid_step == TRUE) {
1485 unit->prof_percent = (100 * run_minutes) / tot_minutes; 1485 unit->prof_percent = (100 * run_minutes) / tot_minutes;
1486 if (((minutes == 10) || (minutes == 40)) && (seconds == 1)) { 1486 if (((minutes == 10) || (minutes == 40)) && (seconds == 1)) {
1487 syslog(LOG_NOTICE, "Profile `%s' running %dd %02d:%02d in step %d, %d%% done, target %s %.3f..%.3f degrees", 1487 syslog(LOG_NOTICE, "Profile `%s' running %dd %02d:%02d in step %d, %d%% done, fridge/beer %d%% %.3f..%.3f degrees",
1488 unit->profile_name, run_hours / 24, run_hours % 24, run_minutes % 60, current_step, 1488 unit->profile_name, run_hours / 24, run_hours % 24, run_minutes % 60, current_step,
1489 unit->prof_percent, unit->prof_fridge_mode ? (char *)"air":(char *)"beer", 1489 unit->prof_percent, unit->prof_fridge_mode, unit->prof_target_lo, unit->prof_target_hi);
1490 unit->prof_target_lo, unit->prof_target_hi);
1491 unit->mqtt_flag |= MQTT_FLAG_DATA; 1490 unit->mqtt_flag |= MQTT_FLAG_DATA;
1492 } 1491 }
1493 } else { 1492 } else {
1494 /* 1493 /*
1495 * No more steps to do 1494 * No more steps to do

mercurial