Fix reverse fan speed issue in demo 95/9195/2 chinook 3.0.3 3.0.4 chinook/3.0.3 chinook/3.0.4 chinook_3.0.3 chinook_3.0.4
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Mon, 24 Apr 2017 08:42:53 +0000 (10:42 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Mon, 24 Apr 2017 08:48:20 +0000 (08:48 +0000)
The reversal of the fanspeed was due to the wrong fan type.
As the fan is replaced, undo it.

Bug-AGL: SPEC-456

Change-Id: Ic7f0779f307c0664284981c052bd512a8a4a25b7
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
binding/hvac-demo-binding.c

index 1b776cd..7f859a6 100644 (file)
@@ -184,7 +184,7 @@ static uint8_t read_temp()
 
 static uint8_t read_fanspeed()
 {
-       return hvac_values[3].value ^ 0xFF;
+       return hvac_values[3].value;
 }
 
 static int write_can()