diff options
author | Yuta Doi <yuta-d@witz-inc.co.jp> | 2018-05-21 19:58:50 +0900 |
---|---|---|
committer | Yuta Doi <yuta-d@witz-inc.co.jp> | 2018-05-21 20:01:53 +0900 |
commit | cfcc176e4cbbd890bcd67e2b8afb61fbff10d131 (patch) | |
tree | 8022ce046039dd759c93e9f3c140a66497ea13db /src/main.cpp | |
parent | b6512a47584376d8016a7e5a91cca8bb5c945db9 (diff) |
Add lightstatus brake ON/OFF event
Change-Id: Id2c61fc6e102394f5ba08effe0cfac448b337176
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 99ad323..07baf2a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -745,6 +745,17 @@ void on_event(const char *event, struct json_object *object){ can_event = "headlamp_off"; } } + else if (strstr(signal_name, lcc->kSignalName_[lcc->SignalNoLightstatusBrake])) { + HMI_DEBUG("wm", "Lightstatus Brake state is changed"); + + // Set event + if (lcc->getCurrentLightstatusBrakeState()) { + can_event = "lightstatus_brake_on"; + } + else { + can_event = "lightstatus_brake_off"; + } + } // Allocate window resource if (nullptr != can_event) { |