From 70e8cd7188bcc07c437200f5b29eb3ef8f2751a5 Mon Sep 17 00:00:00 2001 From: Olivier Date: Wed, 27 Nov 2019 20:48:20 +0100 Subject: [PATCH 1/2] Fix missing MY_INDICATION_HANDLER --- .../BinarySwitchSensorIndication.ino | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/BinarySwitchSensorIndication/BinarySwitchSensorIndication.ino b/examples/BinarySwitchSensorIndication/BinarySwitchSensorIndication.ino index 809b63f..f927319 100644 --- a/examples/BinarySwitchSensorIndication/BinarySwitchSensorIndication.ino +++ b/examples/BinarySwitchSensorIndication/BinarySwitchSensorIndication.ino @@ -6,7 +6,7 @@ * network topology allowing messages to be routed to nodes. * * Created by Henrik Ekblad - * Copyright (C) 2013-2016 Sensnology AB + * Copyright (C) 2013-2019 Sensnology AB * Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors * * Documentation: http://www.mysensors.org @@ -35,6 +35,8 @@ #define MY_RADIO_RF24 //#define MY_RADIO_RFM69 +#define MY_INDICATION_HANDLER + #include #include #include @@ -147,4 +149,3 @@ void loop() oldValue = value; } } - From bba998bce09bc5139eb4ca7a05b0279f4083ff88 Mon Sep 17 00:00:00 2001 From: Mikael Falkvidd Date: Fri, 29 Jan 2021 14:33:48 +0100 Subject: [PATCH 2/2] Fix farenheit conversion When temperature in C was below 0, the conversion to F was wrong due to treating the C value as unsigned integer instead of signed integer. See http://bit.ly/3ckRfxp for more information. Thanks to hoggin for reporting this problem. --- libraries/SI7021/SI7021.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/SI7021/SI7021.cpp b/libraries/SI7021/SI7021.cpp index c51ab6b..4f929d1 100644 --- a/libraries/SI7021/SI7021.cpp +++ b/libraries/SI7021/SI7021.cpp @@ -38,7 +38,7 @@ bool SI7021::sensorExists() { } int SI7021::getFahrenheitHundredths() { - unsigned int c = getCelsiusHundredths(); + int c = getCelsiusHundredths(); return (1.8 * c) + 3200; }