@ -151,7 +151,7 @@ error:
}
void sdcard_power_off(void) {
if (sd_handle.Instance != NULL) {
if (sd_handle.Instance) {
HAL_SD_DeInit(&sd_handle);
sd_handle.Instance = NULL;
@ -144,7 +144,7 @@ void touch_power_on(void) {
void touch_power_off(void) {
if (i2c_handle.Instance != NULL) {
if (i2c_handle.Instance) {
HAL_I2C_DeInit(&i2c_handle);
i2c_handle.Instance = NULL;