Skip to content

Commit

Permalink
Merge pull request hd-zero#349 from SumolX/sd_card_format_notification
Browse files Browse the repository at this point in the history
Notify user SD Card requires formatting
  • Loading branch information
ligenxxxx authored Oct 17, 2023
2 parents ce5d9bd + 4f176b3 commit 3df8182
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ui/ui_statusbar.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "ui/page_wifi.h"
#include "ui/ui_porting.h"
#include "ui/ui_style.h"
#include "util/sdcard.h"

///////////////////////////////////////////////////////////////////////////////
// local
Expand Down Expand Up @@ -223,8 +224,13 @@ void statubar_update(void) {
sprintf(buf, "%.2fGB available", gb);
}
} else {
sprintf(buf, "No SD card");
lv_img_set_src(img_sdc, &img_noSdcard);

if (sdcard_inserted()) {
sprintf(buf, "Unsupported");
} else {
sprintf(buf, "No SD Card");
}
}

lv_label_set_text(label[STS_SDCARD], buf);
Expand Down

0 comments on commit 3df8182

Please sign in to comment.