Add fallback to simulation mode 07/8007/1
authorScott Murray <scott.murray@konsulko.com>
Fri, 30 Dec 2016 18:13:45 +0000 (13:13 -0500)
committerScott Murray <scott.murray@konsulko.com>
Fri, 30 Dec 2016 18:49:58 +0000 (18:49 +0000)
commit1af8b0194218d81c07f2c3974b668b8f41c447ac
tree1827be076f3266b444f6963f1752217e7e300035
parent377a16d4e37f864431b15a963e6984fd33c8aa0c
Add fallback to simulation mode

Add logic to fall back to simulation mode in the absence of the CAN interface,
based on a modified form of the dropped changes from patch #2 of:

https://gerrit.automotivelinux.org/gerrit/#/c/7641

This should fix SPEC-383 by allowing the HVAC demo to run on setups without
the CAN hardware again.

Bug-AGL: SPEC-383

Change-Id: I3ee11c92baccde427986ceb077a37e9b9c900b11
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
binding/hvac-demo-binding.c