1456 unit->temp_set_min = 1.0; |
1456 unit->temp_set_min = 1.0; |
1457 unit->temp_set_max = 30.0; |
1457 unit->temp_set_max = 30.0; |
1458 unit->idle_rangeH = 1.0; |
1458 unit->idle_rangeH = 1.0; |
1459 unit->idle_rangeL = -1.0; |
1459 unit->idle_rangeL = -1.0; |
1460 unit->prof_started = unit->prof_paused = (time_t)0; |
1460 unit->prof_started = unit->prof_paused = (time_t)0; |
|
1461 unit->prof_percent = 0; |
1461 unit->PID_err_old = unit->PID_I_err = 0.0; |
1462 unit->PID_err_old = unit->PID_I_err = 0.0; |
1462 |
1463 |
1463 /* |
1464 /* |
1464 * Block main process |
1465 * Block main process |
1465 */ |
1466 */ |
1544 srv_send((char *)"MODE,%s", UNITMODE[unit->mode]); |
1545 srv_send((char *)"MODE,%s", UNITMODE[unit->mode]); |
1545 srv_send((char *)"FRIDGE_SET,%.1f", unit->fridge_set); |
1546 srv_send((char *)"FRIDGE_SET,%.1f", unit->fridge_set); |
1546 srv_send((char *)"BEER_SET,%.1f", unit->beer_set); |
1547 srv_send((char *)"BEER_SET,%.1f", unit->beer_set); |
1547 srv_send((char *)"PROFILE,%s", unit->profile); |
1548 srv_send((char *)"PROFILE,%s", unit->profile); |
1548 srv_send((char *)"PROF_STARTED,%d", (int)unit->prof_started); |
1549 srv_send((char *)"PROF_STARTED,%d", (int)unit->prof_started); |
1549 srv_send((char *)"PROF_STATE,%s", PROFSTATE[unit->prof_state]); |
1550 if (unit->prof_state == PROFILE_RUN) { |
|
1551 srv_send((char *)"PROF_STATE,%s %d%%", PROFSTATE[unit->prof_state], unit->prof_percent); |
|
1552 } else { |
|
1553 srv_send((char *)"PROF_STATE,%s", PROFSTATE[unit->prof_state]); |
|
1554 } |
1550 srv_send((char *)"PROF_TARGET,%.3f", unit->prof_target); |
1555 srv_send((char *)"PROF_TARGET,%.3f", unit->prof_target); |
1551 srv_send((char *)"TEMP_SET_MIN,%.1f", unit->temp_set_min); |
1556 srv_send((char *)"TEMP_SET_MIN,%.1f", unit->temp_set_min); |
1552 srv_send((char *)"TEMP_SET_MAX,%.1f", unit->temp_set_max); |
1557 srv_send((char *)"TEMP_SET_MAX,%.1f", unit->temp_set_max); |
1553 srv_send((char *)"IDLE_RANGE_L,%.1f", unit->idle_rangeL); |
1558 srv_send((char *)"IDLE_RANGE_L,%.1f", unit->idle_rangeL); |
1554 srv_send((char *)"IDLE_RANGE_H,%.1f", unit->idle_rangeH); |
1559 srv_send((char *)"IDLE_RANGE_H,%.1f", unit->idle_rangeH); |