From ec2a4ea34ee15c027c43e464bb24a77f9bc75de7 Mon Sep 17 00:00:00 2001 From: "H. Nestler" <81570977+H-Nestler@users.noreply.github.com> Date: Mon, 4 Nov 2024 21:02:16 +0100 Subject: [PATCH] fix(warning): In function '_lok_one_shot_8821c': hal/phydm/halrf/rtl8821c/halrf_iqk_8821c.c:1201: warning: comparison is always false due to limited range of data type delay_count 50.000 needs 32 bit. 8 bit are to short. --- hal/phydm/halrf/rtl8821c/halrf_iqk_8821c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hal/phydm/halrf/rtl8821c/halrf_iqk_8821c.c b/hal/phydm/halrf/rtl8821c/halrf_iqk_8821c.c index 15879c6..06ad88f 100644 --- a/hal/phydm/halrf/rtl8821c/halrf_iqk_8821c.c +++ b/hal/phydm/halrf/rtl8821c/halrf_iqk_8821c.c @@ -1157,7 +1157,7 @@ _lok_one_shot_8821c(void *dm_void, u8 path, u8 pad_index) { struct dm_struct *dm = (struct dm_struct *)dm_void; struct dm_iqk_info *iqk_info = &dm->IQK_info; - u8 delay_count = 0; + u32 delay_count = 0; boolean LOK_notready = false; u32 LOK_temp2 = 0, LOK_temp3 = 0; u32 IQK_CMD = 0x0;