Merge "Remove SIMULATE_HVAC define to make hvac use can bus"
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Mon, 19 Dec 2016 21:12:33 +0000 (21:12 +0000)
committerGerrit Code Review <gerrit@automotivelinux.org>
Mon, 19 Dec 2016 21:12:33 +0000 (21:12 +0000)
binding/hvac-demo-binding.c

index d35330e..4913380 100644 (file)
@@ -174,7 +174,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()