thermferm/thermferm.c

changeset 274
111b0e9663dc
parent 273
b863e0147296
child 275
a86c702c2e4f
equal deleted inserted replaced
273:b863e0147296 274:111b0e9663dc
1164 } 1164 }
1165 time_until_now += step->steptime + step->resttime; 1165 time_until_now += step->steptime + step->resttime;
1166 previous_target = step->target; 1166 previous_target = step->target;
1167 } 1167 }
1168 if (debug) 1168 if (debug)
1169 fprintf(stdout, " %s\n", valid_step ? "TRUE":"FALSE"); 1169 fprintf(stdout, " %s %02d:%02d\n", valid_step ? "TRUE":"FALSE", minutes, seconds);
1170 1170
1171 /* 1171 if (valid_step == TRUE) {
1172 * No more steps to do 1172 if (((minutes == 15) || (minutes == 45)) && (seconds == 1)) {
1173 */ 1173 syslog(LOG_NOTICE, "Profile `%s' running %02d:%02d in step %d, target %.3f degrees",
1174 if (valid_step == FALSE) { 1174 profile->name, run_hours, run_minutes % 60, current_step, unit->prof_target);
1175 }
1176 } else {
1177 /*
1178 * No more steps to do
1179 */
1175 unit->prof_state = PROFILE_DONE; 1180 unit->prof_state = PROFILE_DONE;
1176 syslog(LOG_NOTICE, "Profile `%s' is done", profile->name); 1181 syslog(LOG_NOTICE, "Profile `%s' is done", profile->name);
1177 } 1182 }
1178 break; 1183 break;
1179 1184

mercurial