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; |