nuttx/boards/arm/gd32f4
Mingjie Shen 51c4a5c2d6 gd32f4xx_at24: Fix uninitialized use of local variables i2c and at24
Prior to this commit, i2c and at24 may be used uninitialized on line
113, 117, 129, and 143 when gd32_at24_wr_test() is called the second
time because these two variables are not static. I don't think making
them static is the correct fix because i2c is released at the end of
this function. Fixed by removing the `if (!initialized)` condition
surrounding the initialization of i2c and at24, making them initialized
at every call to this function.

Signed-off-by: Mingjie Shen <shen497@purdue.edu>
2024-08-27 21:32:28 +08:00
..
gd32f450zk-aiotbox nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
gd32f450zk-eval gd32f4xx_at24: Fix uninitialized use of local variables i2c and at24 2024-08-27 21:32:28 +08:00
gd32f470ik-eval net: Enable ICMP by default if IPv4 is enabled 2024-07-09 17:08:27 +08:00
gd32f470zk-aiotbox nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
gd32f470zk-eval nuttx/boards:Uniform initialization format for init_array. 2024-08-19 19:48:32 +08:00