add hint code.

This commit is contained in:
luocai 2024-09-23 19:19:10 +08:00
parent 9ed27e2c37
commit 699a9150c0
3 changed files with 4 additions and 1 deletions

View File

@ -391,6 +391,8 @@ void ModuleCommunication::processPackage(const uint8_t *data, uint16_t size) {
uint16_t palmState = ntohs(state->state); uint16_t palmState = ntohs(state->state);
if (palmState == NeedMoveToCenter) { if (palmState == NeedMoveToCenter) {
emit errorOccurred(NoteId::InteractWarning, "录入提示", "请将手掌置于画面中心"); emit errorOccurred(NoteId::InteractWarning, "录入提示", "请将手掌置于画面中心");
} else if (palmState == TooFar) {
emit errorOccurred(NoteId::InteractWarning, "录入提示", "请将手掌靠近一点");
} }
LOG(info) << "palm state: " << palmState; LOG(info) << "palm state: " << palmState;
break; break;

View File

@ -57,6 +57,7 @@ public:
enum PalmState { enum PalmState {
NoPalm = 1, NoPalm = 1,
TooFar = 6,
NeedMoveToCenter = 15, NeedMoveToCenter = 15,
NoAlive = 122, NoAlive = 122,
}; };

View File

@ -61,7 +61,7 @@ HOST_TOOLS := /opt/Xuantie-900-gcc-elf-newlib-x86_64-V2.6.1/bin
# 编译OTA固件11为OTA版本号,这个版本号只做固件文件名显示。 # 编译OTA固件11为OTA版本号,这个版本号只做固件文件名显示。
# 实际的版本设置在 cv181x_alios/solutions/smart_doorbell/package.yaml.L015_V200R002 # 实际的版本设置在 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 600X800
``` ```