From 699a9150c06b8e3a564e8160dfd611671d1875dc Mon Sep 17 00:00:00 2001 From: luocai Date: Mon, 23 Sep 2024 19:19:10 +0800 Subject: [PATCH] add hint code. --- Analyser/ModuleCommunication.cpp | 2 ++ Analyser/ModuleCommunication.h | 1 + Readme.md | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Analyser/ModuleCommunication.cpp b/Analyser/ModuleCommunication.cpp index a64e3ed..3776d78 100644 --- a/Analyser/ModuleCommunication.cpp +++ b/Analyser/ModuleCommunication.cpp @@ -391,6 +391,8 @@ void ModuleCommunication::processPackage(const uint8_t *data, uint16_t size) { uint16_t palmState = ntohs(state->state); if (palmState == NeedMoveToCenter) { emit errorOccurred(NoteId::InteractWarning, "录入提示", "请将手掌置于画面中心"); + } else if (palmState == TooFar) { + emit errorOccurred(NoteId::InteractWarning, "录入提示", "请将手掌靠近一点"); } LOG(info) << "palm state: " << palmState; break; diff --git a/Analyser/ModuleCommunication.h b/Analyser/ModuleCommunication.h index 8fc88e8..9ec0602 100644 --- a/Analyser/ModuleCommunication.h +++ b/Analyser/ModuleCommunication.h @@ -57,6 +57,7 @@ public: enum PalmState { NoPalm = 1, + TooFar = 6, NeedMoveToCenter = 15, NoAlive = 122, }; diff --git a/Readme.md b/Readme.md index a90a399..d61e95c 100644 --- a/Readme.md +++ b/Readme.md @@ -61,7 +61,7 @@ HOST_TOOLS := /opt/Xuantie-900-gcc-elf-newlib-x86_64-V2.6.1/bin # 编译OTA固件,11为OTA版本号,这个版本号只做固件文件名显示。 # 实际的版本设置在 cv181x_alios/solutions/smart_doorbell/package.yaml.L015_V200R002 -./rebuild-app-ota.sh y L015 V200 R002 04 +./rebuild-app-ota.sh y L015 V200 R002 05 600X800 ```