Skip to content

Commit

Permalink
fix: simu sd detection (#3936)
Browse files Browse the repository at this point in the history
  • Loading branch information
3djc authored Aug 15, 2023
1 parent b8300c7 commit 1177891
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions radio/src/sdcard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,11 @@ void sdDone()

uint32_t sdMounted()
{
#if defined(SIMU)
return true;
#else
return _g_FATFS_init && (g_FATFS_Obj.fs_type != 0);
#endif
}


Expand Down

0 comments on commit 1177891

Please sign in to comment.