diff options
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) { |