1
0
mirror of https://github.com/morrownr/8821cu-20210916.git synced 2024-11-22 13:34:47 +00:00

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.
This commit is contained in:
H. Nestler 2024-11-04 21:02:16 +01:00
parent 35d70e71ce
commit ec2a4ea34e

View File

@ -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;