188 for (unit = Config.units; unit; unit = unit->next) { |
188 for (unit = Config.units; unit; unit = unit->next) { |
189 /* |
189 /* |
190 * Safety, turn everything off |
190 * Safety, turn everything off |
191 */ |
191 */ |
192 if (unit->active) { |
192 if (unit->active) { |
193 if (unit->hlt_heater) |
193 unit->hlt_heater.value = 0; |
194 unit->hlt_heater->value = 0; |
194 unit->mlt_heater.value = 0; |
195 if (unit->mlt_heater) |
195 unit->mlt_pump.value = 0; |
196 unit->mlt_heater->value = 0; |
|
197 if (unit->mlt_pump) |
|
198 unit->mlt_pump->value = 0; |
|
199 } |
196 } |
200 } |
197 } |
201 |
198 |
202 if (! Config.units) { |
199 if (! Config.units) { |
203 /* |
200 /* |