From: Caisking Date: Tue, 16 Sep 2025 13:51:58 +0000 (+0800) Subject: 增加N9的雷鸟测试宏。开启宏开机默认进入雷鸟 X-Git-Tag: leiniao_debug_1.0.0_20250922_020716~76^2~2 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=e7d73943e319c868959ec0847c14fb2c78b72956;p=mirrors%2FFD230.git 增加N9的雷鸟测试宏。开启宏开机默认进入雷鸟 --- diff --git a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/src/NativeLauncher.cpp b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/src/NativeLauncher.cpp index 56776b460..d2f141470 100644 --- a/code/sdk/application/wearable/n9/nativeapp/nativelauncher/src/NativeLauncher.cpp +++ b/code/sdk/application/wearable/n9/nativeapp/nativelauncher/src/NativeLauncher.cpp @@ -174,8 +174,8 @@ void NativeLauncher::InitNativeLauncher(LaunchMode mode) // 开机增加震动 页面启动震动一次 // custom_VibratorFunc_int(0); - // 如果是雷鸟项目 - #ifdef BOARD_LEINIAO + // 如果是雷鸟项目 或者是测试雷鸟项目 + #if defined(BOARD_LEINIAO) || defined(TEST_LEINIAO) NativeAbility::GetInstance().SetDefaultSliceId(VIEW_THUNDER_BIRD); return; #endif diff --git a/code/sdk/build/config/target_config/brandy/config.py b/code/sdk/build/config/target_config/brandy/config.py index 176043ccc..00b37c96c 100644 --- a/code/sdk/build/config/target_config/brandy/config.py +++ b/code/sdk/build/config/target_config/brandy/config.py @@ -944,6 +944,8 @@ target = { #自定义配置项,选择硬件及功能参数 'defines': [ 'BOARD_N9', + #雷鸟测试宏 + # 'TEST_LEIRNIA' # cat1 相关配置 'FT_SINGLE_UART', 'SUPPORT_CAT1_SERVICE',