diff options
author | Yuta Doi <yuta-d@witz-inc.co.jp> | 2018-05-14 17:22:57 +0900 |
---|---|---|
committer | Yuta Doi <yuta-d@witz-inc.co.jp> | 2018-05-14 17:24:48 +0900 |
commit | bfadb522b21256fde7283746b90116c237e57a5b (patch) | |
tree | 099baa7b078029a19430372bace46dee64958be6 /src/main.cpp | |
parent | 701f1ff00b3b6cf5f5a50b4cf3f65e176cb26460 (diff) |
PolicyManager can judge the current car state
and remove judgement process of it from LowCanClient
because it should be judged by PolicyManager
Change-Id: I94467332665e34b751604cafe5d43f3abd4d7cfd
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/main.cpp b/src/main.cpp index 762981f..3a60b94 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -699,22 +699,6 @@ void on_event(const char *event, struct json_object *object){ } }); } - else if (g_afb_instance->lcc_.isChangedCarState()) { - // If car state is changed - HMI_DEBUG("wm", "Car state is changed"); - - // Get car state - const char* car_state = g_afb_instance->lcc_.getCurrentCarState(); - - // Allocate window resource - g_afb_instance->app.allocateWindowResource(car_state, nullptr, - nullptr, nullptr, - [](const char* errmsg){ - if (errmsg != nullptr) { - HMI_ERROR("wm", errmsg); - } - }); - } else if (g_afb_instance->lcc_.isChangedLampState()) { // If lamp state is changed HMI_DEBUG("wm", "Lamp state is changed"); |