From: luozheng <1732036298@qq.com> Date: Tue, 3 Jun 2025 02:25:26 +0000 (+0800) Subject: 解决乘车码未知错误问题 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F1803%2F2;p=mirrors%2FFD230.git 解决乘车码未知错误问题 --- diff --git a/code/sdk/application/wearable/service/ble_service/transspecard/transspecard.c b/code/sdk/application/wearable/service/ble_service/transspecard/transspecard.c index 8261c34ca..170f14cf6 100644 --- a/code/sdk/application/wearable/service/ble_service/transspecard/transspecard.c +++ b/code/sdk/application/wearable/service/ble_service/transspecard/transspecard.c @@ -624,6 +624,7 @@ uint8_t parse_transspecard_data(void *buf, uint16_t event_size) receive_packet_total = current_packet_total; receive_total_datalen = current_total_datalen; + #if 0 if (receive_total_datalen > MAX_RECEIVE_BUFFER_SIZE) { printf("Received data length exceeds buffer size,receive_total_datalen:%u!\r\n",receive_total_datalen); @@ -632,6 +633,7 @@ uint8_t parse_transspecard_data(void *buf, uint16_t event_size) notify_resend(RECEIVE_PACKET_FIRST); return ALIPAY_TRANSSPECARD_ERRCODE_FAIL; } + #endif packet_received_flags = (uint8_t *)malloc(receive_packet_total); if (packet_received_flags == NULL)