From 45abf73a95c2da48edfbf077900450b34cb147ce Mon Sep 17 00:00:00 2001 From: Joe Maples Date: Sat, 24 Dec 2022 21:55:22 -0500 Subject: [PATCH] Disable factory mode --- config/open_source/target.mk | 2 +- services/app_ibrt/src/app_ibrt_keyboard.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config/open_source/target.mk b/config/open_source/target.mk index f1e3b78..2ef6911 100644 --- a/config/open_source/target.mk +++ b/config/open_source/target.mk @@ -236,7 +236,7 @@ export TX_RX_PCM_MASK ?= 0 A2DP_SCALABLE_ON ?= 0 -FACTORY_MODE ?= 1 +FACTORY_MODE ?= 0 ENGINEER_MODE ?= 0 diff --git a/services/app_ibrt/src/app_ibrt_keyboard.cpp b/services/app_ibrt/src/app_ibrt_keyboard.cpp index 559f33d..42ffb6d 100644 --- a/services/app_ibrt/src/app_ibrt_keyboard.cpp +++ b/services/app_ibrt/src/app_ibrt_keyboard.cpp @@ -134,8 +134,10 @@ void app_ibrt_search_ui_handle_key(APP_KEY_STATUS *status, void *param) case APP_KEY_EVENT_SIXTHCLICK: if(!app_device_bt_is_connected()&&(!app_tws_ibrt_tws_link_connected())){ qxw_dut_mode_enable = true; - app_factorymode_bt_signalingtest(NULL,NULL); - } +#ifdef __FACTORY_MODE_SUPORT__ + app_factorymode_bt_signalingtest(NULL,NULL); +#endif + } break; case APP_KEY_EVENT_EIGHTHCLICK: if(!app_device_bt_is_connected()){