Fix reverse fanspeed value since test over a real fan at f2f 57/7657/1
authorRomain Forlot <romain.forlot@iot.bzh>
Fri, 16 Dec 2016 02:52:28 +0000 (02:52 +0000)
committerRomain Forlot <romain.forlot@iot.bzh>
Fri, 16 Dec 2016 02:52:28 +0000 (02:52 +0000)
Change-Id: I4d1a952cc21311847975071aaab7f5d0aadd2eb9
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
binding/hvac-demo-binding.c

index 14af56b..96b448a 100644 (file)
@@ -137,7 +137,7 @@ static uint8_t read_temp()
 
 static uint8_t read_fanspeed()
 {
-       return hvac_values[3].value;
+       return hvac_values[3].value ^ 0xFF;
 }
 
 static int write_can()