thermferm/thermferm.c

changeset 288
8b99ab77262b
parent 284
9e6fb5aed618
child 289
d810df0df36a
equal deleted inserted replaced
287:61be1e1711d3 288:8b99ab77262b
1120 * temperature fall thru. 1120 * temperature fall thru.
1121 */ 1121 */
1122 unit->prof_paused++; 1122 unit->prof_paused++;
1123 case PROFILE_RUN: 1123 case PROFILE_RUN:
1124 /* 1124 /*
1125 * Calculate current profile step en desired temperature. 1125 * Calculate current profile step and desired temperature.
1126 * When all done, set state to PROFILE_DONE. 1126 * When all steps are done, set state to PROFILE_DONE.
1127 */ 1127 */
1128 previous_target = profile->inittemp; 1128 previous_target = profile->inittemp;
1129 time_until_now = current_step = 0; 1129 time_until_now = current_step = 0;
1130 run_seconds = (int)(now - unit->prof_started - unit->prof_paused); 1130 run_seconds = (int)(now - unit->prof_started - unit->prof_paused);
1131 run_minutes = run_seconds / 60; 1131 run_minutes = run_seconds / 60;

mercurial