51c4a5c2d6
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> |
||
---|---|---|
.. | ||
gd32f4xx_appinit.c | ||
gd32f4xx_at24.c | ||
gd32f4xx_autoleds.c | ||
gd32f4xx_boot.c | ||
gd32f4xx_bringup.c | ||
gd32f4xx_buttons.c | ||
gd32f4xx_gd25.c | ||
gd32f4xx_gpio.c | ||
gd32f4xx_romfs.c | ||
gd32f4xx_romfs.h | ||
gd32f4xx_sdio.c | ||
gd32f4xx_spi.c | ||
gd32f4xx_userleds.c | ||
gd32f450z_eval.h | ||
Makefile |