From d8462ba80d374473172994da892f087407951e4b Mon Sep 17 00:00:00 2001 From: zhangsheng Date: Fri, 11 Apr 2025 14:21:16 +0800 Subject: [PATCH] fix bugs --- uart/uart_feature_parse.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/uart/uart_feature_parse.cpp b/uart/uart_feature_parse.cpp index 0e66e99..b2ebad6 100644 --- a/uart/uart_feature_parse.cpp +++ b/uart/uart_feature_parse.cpp @@ -862,7 +862,10 @@ void Uart::DealWave() { { scheduler::instance().WaveSuccess(wave_shortAddr); } - + if (g_mapCompress[strShortAddr].CountX <= 0 && g_mapCompress[strShortAddr].CountY <= 0 && g_mapCompress[strShortAddr].CountZ <= 0) + { + scheduler::instance().WaveError(wave_shortAddr); + } g_mapCompress[strShortAddr].CountX = 0; g_mapCompress[strShortAddr].CountY = 0; g_mapCompress[strShortAddr].CountZ = 0;