thermferm/thermferm.c

changeset 489
9cb274b7e027
parent 488
bee1f70fb42b
child 490
080c8ea4875e
equal deleted inserted replaced
488:bee1f70fb42b 489:9cb274b7e027
1670 LCDair = unit->air_temperature / 1000.0; 1670 LCDair = unit->air_temperature / 1000.0;
1671 LCDbeer = unit->beer_temperature / 1000.0; 1671 LCDbeer = unit->beer_temperature / 1000.0;
1672 LCDstatC = LCDstatH = 'x'; 1672 LCDstatC = LCDstatH = 'x';
1673 if (unit->heater_address) { 1673 if (unit->heater_address) {
1674 if (unit->heater_state) 1674 if (unit->heater_state)
1675 LCDstatH = '\6';
1676 else
1675 LCDstatH = '\5'; 1677 LCDstatH = '\5';
1676 else
1677 LCDstatH = '\6';
1678 } 1678 }
1679 if (unit->cooler_address) { 1679 if (unit->cooler_address) {
1680 if (unit->cooler_state) 1680 if (unit->cooler_state)
1681 LCDstatC = '\4';
1682 else
1681 LCDstatC = '\3'; 1683 LCDstatC = '\3';
1682 else
1683 LCDstatC = '\4';
1684 } 1684 }
1685 LCDspH = LCDspL = 0.0; 1685 LCDspH = LCDspL = 0.0;
1686 if (unit->mode == UNITMODE_BEER) 1686 if (unit->mode == UNITMODE_BEER)
1687 LCDspH = LCDspL = unit->beer_set; 1687 LCDspH = LCDspL = unit->beer_set;
1688 else if (unit->mode == UNITMODE_FRIDGE) 1688 else if (unit->mode == UNITMODE_FRIDGE)

mercurial