From 1647f4b97c702a87f9adcd7aedd17e62c0fceb14 Mon Sep 17 00:00:00 2001 From: Gatsby Van Date: Wed, 31 Jan 2024 00:34:29 +0800 Subject: [PATCH] *bugfix: correct FLJ and LJ data length --- df_datalink_sp/src/system_monitor.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/df_datalink_sp/src/system_monitor.h b/df_datalink_sp/src/system_monitor.h index 483a075..e60fbf8 100644 --- a/df_datalink_sp/src/system_monitor.h +++ b/df_datalink_sp/src/system_monitor.h @@ -61,9 +61,9 @@ typedef struct typedef struct { uint32_t dataId_lj; - uint8_t data_lj[PAYLOAD_LJ]; + uint8_t data_lj[PAYLOAD_LEN]; uint32_t dataId_flj; - uint8_t data_flj[PAYLOAD_FLJ]; + uint8_t data_flj[PAYLOAD_LEN]; } PAYLOAD; typedef struct @@ -73,7 +73,7 @@ typedef struct uint8_t slotNo; uint8_t frameType; // Payload - uint8_t payload[256]; + uint8_t payload[PAYLOAD_LEN]; // Time sync info uint64_t tmStamp; uint32_t tmDevi;