1027 int current_step, valid_step, time_until_now, previous_fridge_mode; |
1027 int current_step, valid_step, time_until_now, previous_fridge_mode; |
1028 float previous_target_lo, previous_target_hi; |
1028 float previous_target_lo, previous_target_hi; |
1029 float LCDair, LCDbeer, LCDspL, LCDspH; |
1029 float LCDair, LCDbeer, LCDspL, LCDspH; |
1030 unsigned char LCDstatC, LCDstatH; |
1030 unsigned char LCDstatC, LCDstatH; |
1031 |
1031 |
1032 unit->mqtt_flag &= ~MQTT_FLAG_DATA; |
1032 // unit->mqtt_flag &= ~MQTT_FLAG_DATA; |
1033 unit->alarm_flag = 0; |
1033 unit->alarm_flag = 0; |
1034 |
1034 |
1035 if (unit->air_address) { |
1035 if (unit->air_address) { |
1036 rc = device_in(unit->air_address, &temp); |
1036 rc = device_in(unit->air_address, &temp); |
1037 if (rc == DEVPRESENT_YES) { |
1037 if (rc == DEVPRESENT_YES) { |
1621 if (unit->mqtt_flag & MQTT_FLAG_BIRTH) { |
1621 if (unit->mqtt_flag & MQTT_FLAG_BIRTH) { |
1622 publishDBirth(unit); |
1622 publishDBirth(unit); |
1623 unit->mqtt_flag &= ~MQTT_FLAG_BIRTH; |
1623 unit->mqtt_flag &= ~MQTT_FLAG_BIRTH; |
1624 } else { |
1624 } else { |
1625 publishDData(unit); |
1625 publishDData(unit); |
1626 unit->mqtt_flag &= ~MQTT_FLAG_DATA; |
1626 // unit->mqtt_flag &= ~MQTT_FLAG_DATA; |
1627 } |
1627 } |
1628 if (unit->mqtt_flag & MQTT_FLAG_DEATH) { |
1628 if (unit->mqtt_flag & MQTT_FLAG_DEATH) { |
1629 publishDDeath(unit); |
1629 publishDDeath(unit); |
1630 unit->mqtt_flag &= ~MQTT_FLAG_DEATH; |
1630 unit->mqtt_flag &= ~MQTT_FLAG_DEATH; |
1631 } |
1631 } |