From 794695db3b910827735578529ed4192a98a045ad Mon Sep 17 00:00:00 2001 From: YeezB Date: Fri, 12 Jul 2024 23:44:19 +0800 Subject: [PATCH] fix data structure alignment bug --- DFRobot_DF2301Q.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DFRobot_DF2301Q.h b/DFRobot_DF2301Q.h index e52f012..ddcc5c8 100644 --- a/DFRobot_DF2301Q.h +++ b/DFRobot_DF2301Q.h @@ -231,6 +231,8 @@ class DFRobot_DF2301Q_UART: public DFRobot_DF2301Q // uint8_t tail; /* send add auto */ }sUartMsg_t; + #pragma pack() + /** * @enum eReceiveState_t * @brief receive use state machine method, so two char can arrive different time