From 1d40fb44507d6355904db7145b1c156321c2aad9 Mon Sep 17 00:00:00 2001 From: mculover666 <2412828003@qq.com> Date: Sat, 30 Jan 2021 09:48:26 +0800 Subject: [PATCH] fix bug in pm2d5 parser --- board/TencentOS_tiny_EVB_G0/BSP/Hardware/PM2D5/pm2d5_parser.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/TencentOS_tiny_EVB_G0/BSP/Hardware/PM2D5/pm2d5_parser.h b/board/TencentOS_tiny_EVB_G0/BSP/Hardware/PM2D5/pm2d5_parser.h index fbccb1ac..991644d9 100644 --- a/board/TencentOS_tiny_EVB_G0/BSP/Hardware/PM2D5/pm2d5_parser.h +++ b/board/TencentOS_tiny_EVB_G0/BSP/Hardware/PM2D5/pm2d5_parser.h @@ -49,7 +49,8 @@ typedef struct pm2d5_data_st { uint16_t data10; uint16_t data11; uint16_t data12; - uint16_t data13; + uint8_t version; + uint8_t err_code; }pm2d5_data_t; typedef union pm2d5_data_un {