diff options
author | 2018-05-21 19:58:50 +0900 | |
---|---|---|
committer | 2018-05-21 19:58:50 +0900 | |
commit | b4083090dc8bf7adaad23dc11d629be839c7b5cf (patch) | |
tree | b665d824226abb8a36d127a0429d20837bf186c7 /src/main.cpp | |
parent | bf19dc1568478b646959e3e0bd58c54814facfa6 (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 1db33a4..d7d731f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -710,6 +710,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) { |