fix crash if SD enabled but not inserted and sleep
This commit is contained in:
1 parent
f3fdfda3fd
commit
c07ca14e20
1 file changed
+2
@@ -216,6 +216,8 @@ void sdcard_flush(void) {
|
||||
}
|
||||
|
||||
void sdcard_close(void) {
|
||||
if (!useSDCard)
|
||||
return;
|
||||
ESP_LOGI(TAG, "closing SD-card");
|
||||
sdcard_flush();
|
||||
#ifdef SD_LOGGING
|
||||
|
||||
Reference in new issue
Block a user