From: Jan-Simon Möller Date: Mon, 24 Apr 2017 08:45:23 +0000 (+0200) Subject: Fix reverse fan speed issue in demo X-Git-Tag: dab_3.99.1^0 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F97%2F9197%2F2;p=apps%2Fhvac.git Fix reverse fan speed issue in demo 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: Ie6300e41b24962c072170ab4606252fcdce4b073 Signed-off-by: Jan-Simon Möller --- diff --git a/binding/hvac-demo-binding.c b/binding/hvac-demo-binding.c index 1b776cd..7f859a6 100644 --- a/binding/hvac-demo-binding.c +++ b/binding/hvac-demo-binding.c @@ -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()