From ec772ba9e3fb9686d49ea2a4fa8db720e24b05df Mon Sep 17 00:00:00 2001 From: Gatsby Van Date: Thu, 7 Mar 2024 11:33:56 +0800 Subject: [PATCH] add new log entry (phy: antenna power mode) --- df_datalink_sp/src/networking/phy_layer/phy_antenna.c | 1 + df_datalink_sp/src/system_monitor.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/df_datalink_sp/src/networking/phy_layer/phy_antenna.c b/df_datalink_sp/src/networking/phy_layer/phy_antenna.c index ef0a494..0522e76 100644 --- a/df_datalink_sp/src/networking/phy_layer/phy_antenna.c +++ b/df_datalink_sp/src/networking/phy_layer/phy_antenna.c @@ -265,6 +265,7 @@ void Phy_AntConfigMode(PHY_INST *instPtr, PHY_ANT_MODE mode) DBG_ERROR("Unknown antenna mode: %" PRIu8 ", remain previous mode.\n", mode); return; } + instPtr->phyLog.antMode = mode; instPtr->antConfig.antMode = config; } diff --git a/df_datalink_sp/src/system_monitor.h b/df_datalink_sp/src/system_monitor.h index 4d1955c..dfe0592 100644 --- a/df_datalink_sp/src/system_monitor.h +++ b/df_datalink_sp/src/system_monitor.h @@ -152,7 +152,8 @@ typedef struct __attribute__((packed)) double fsyncPAPR; uint8_t fsyncFreqCh; uint16_t deintlvAmpEst; - uint8_t reserve[4]; + uint8_t antMode; + uint8_t reserve[3]; } PHYLOG; typedef struct __attribute__((packed))