Skip to content

Commit

Permalink
send -1 °C if error
Browse files Browse the repository at this point in the history
  • Loading branch information
jp112sdl committed Jan 27, 2020
1 parent 844177c commit 1f08dd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HB-UNI-Sen-TEMP-MAX6675/HB-UNI-Sen-TEMP-MAX6675.ino
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class WeatherChannel : public Channel<Hal, List1, EmptyList, List4, PEERS_PER_CH
clock.add(*this);
sensOK = max6675.measure();

msg.init(device().nextcount(), max6675.temperature(), false);
msg.init(device().nextcount(), sensOK ? max6675.temperature() : -10, false);

device().broadcastEvent(msg);

Expand Down

0 comments on commit 1f08dd7

Please sign in to comment.