Permalink
Browse files

Add files via upload

negative temperaturen werden nun richtig!
  • Loading branch information...
terdl committed Feb 4, 2018
1 parent 1257bf1 commit 98b1a4793c5fd455bfc2e73a1d820ead1becde38
Showing with 1 addition and 1 deletion.
  1. +1 −1 hcan4mqttpc/mqttHcan.c
View
@@ -181,7 +181,7 @@ size_t catHesTopic4Broker(char * str, const struct can_frame * cf)
case HCAN_HES_1WIRE_TEMPERATURE:
case HCAN_HES_1WIRE_TEMPERATURE_REPLAY:
temp = ((cf->data[3]<<8)|cf->data[4]) / 16.0; // Temperaturwert
temp = (((signed char)cf->data[3]<<8)|cf->data[4]) / 16.0; // Temperaturwert
return snprintf(str, maxSize, "%d/T/%.1f", cf->data[2], temp); // mit einer Nachkommastelle
/*case HCAN_HES_REEDKONTAKT_OFFEN:

0 comments on commit 98b1a47

Please sign in to comment.