From 41f10fe756f7ba9291c401facc0c2bf62f5364cb Mon Sep 17 00:00:00 2001 From: haoran Date: Fri, 15 Nov 2024 17:07:58 +0800 Subject: [PATCH] update --- .settings/language.settings.xml | 4 ++-- .vscode/settings.json | 4 +++- usrc/service/app_core.cpp | 9 ++++----- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.settings/language.settings.xml b/.settings/language.settings.xml index adb54ce..5e8e986 100644 --- a/.settings/language.settings.xml +++ b/.settings/language.settings.xml @@ -5,7 +5,7 @@ - + @@ -16,7 +16,7 @@ - + diff --git a/.vscode/settings.json b/.vscode/settings.json index c8a3378..3b7456f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -97,7 +97,9 @@ "usbh_core.h": "c", "usbh_platform.h": "c", "file_operate.h": "c", - "fatfs.h": "c" + "fatfs.h": "c", + "stm32f4xx.h": "c", + "stm32f407xx.h": "c" }, "files.autoGuessEncoding": false, "files.encoding": "gb2312" diff --git a/usrc/service/app_core.cpp b/usrc/service/app_core.cpp index a9f1d86..430d0f9 100644 --- a/usrc/service/app_core.cpp +++ b/usrc/service/app_core.cpp @@ -1,5 +1,4 @@ #include "app_core.hpp" - #include #include @@ -173,14 +172,14 @@ void AppCore::test() { #ifdef TEST_TJC_SCREEN FrontEndControler::ins()->initialize(); + FrontEndControler::ins()->startSchedule(); while (true) { // 扫描到 0x50 说明EEPROM在线 - uint8_t tx = 0x73; - uint8_t rx = 0; + uint8_t tx = 0x10; + uint8_t rx = 0; bool suc = FrontEndControler::ins()->echo(tx, &rx); ZLOGI(TAG, "echo suc:%d tx:%x rx:%x", suc, tx, rx); - - osDelay(3000); + osDelay(100); } #endif