From e23a4271c882899ef0f88672326aa435ade56a13 Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Mon, 24 Mar 2025 15:54:17 +0100 Subject: [PATCH] Make first_call_set bool, write log with logging system Change to bool for clarity. The log message would sometimes only show up at the end, which is misleading; use the logging module, which harmonizes log statements and should make this appear immediately. --- radio/fhi_72/oaioran.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/radio/fhi_72/oaioran.c b/radio/fhi_72/oaioran.c index f22406856d..8e1664d4f0 100644 --- a/radio/fhi_72/oaioran.c +++ b/radio/fhi_72/oaioran.c @@ -44,7 +44,7 @@ #endif // Declare variable useful for the send buffer function -volatile uint8_t first_call_set = 0; +volatile bool first_call_set = false; int xran_is_prach_slot(uint8_t PortId, uint32_t subframe_id, uint32_t slot_id); #include "common/utils/LOG/log.h" @@ -154,8 +154,8 @@ void oai_xran_fh_rx_callback(void *pCallbackTag, xran_status_t status) int oai_physide_dl_tti_call_back(void *param) { if (!first_call_set) - printf("first_call set from phy cb first_call_set=%p\n", &first_call_set); - first_call_set = 1; + LOG_I(HW, "first_call set from phy cb\n"); + first_call_set = true; return 0; }