From f7107e325fbd42ed9875b7b28c340e1cda8627cc Mon Sep 17 00:00:00 2001 From: yincheng.zhong <634916154@qq.com> Date: 星期日, 24 三月 2024 18:29:51 +0800 Subject: [PATCH] 1.12 修复大于25个的添加标签的bug --- Src/radio/sx126x.c | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Src/radio/sx126x.c b/Src/radio/sx126x.c index 3c375a4..91725a5 100644 --- a/Src/radio/sx126x.c +++ b/Src/radio/sx126x.c @@ -79,14 +79,18 @@ * \brief Process the IRQ if handled by the driver */ void SX126xProcessIrqs( void ); - - +#include "main.h" +extern LPTIM_HandleTypeDef hlptim1; +uint16_t tt3[10]; void SX126xInit( DioIrqHandler dioIrq ) { + tt3[0] = HAL_LPTIM_ReadCounter(&hlptim1); SX126xReset( ); + tt3[1] = HAL_LPTIM_ReadCounter(&hlptim1); SX126xWakeup( ); + tt3[2] = HAL_LPTIM_ReadCounter(&hlptim1); SX126xSetStandby( STDBY_RC ); - +tt3[3] = HAL_LPTIM_ReadCounter(&hlptim1); #ifdef USE_TCXO CalibrationParams_t calibParam; @@ -95,8 +99,9 @@ SX126xCalibrate( calibParam ); #endif - + tt3[4] = HAL_LPTIM_ReadCounter(&hlptim1); SX126xSetDio2AsRfSwitchCtrl( true ); + tt3[5] = HAL_LPTIM_ReadCounter(&hlptim1); OperatingMode = MODE_STDBY_RC; } -- Gitblit v1.9.3