mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-08-24 00:19:02 +00:00
Improve SD Card Status Display and Error Handling (#3079)
Summary: Fixed SD card mount error detection by enabling immediate mounting, made the status icon clickable to access settings, and added real-time status display (including filesystem type) in the SD card settings page. Changes: - Changed f_mount() to immediate mounting for error detection - Made SD card status icon clickable, linking to an enhanced sd card settings page that now includes live display of card status and filesystem type - Removed "SDCard Error" menu item
This commit is contained in:
@@ -83,7 +83,7 @@ const Color color_sd_card(const sd_card::Status status) {
|
||||
|
||||
SDCardStatusView::SDCardStatusView(
|
||||
const Rect parent_rect)
|
||||
: Image{parent_rect, &bitmap_sd_card_unknown, detail::color_sd_card_unknown, Theme::getInstance()->bg_dark->background} {
|
||||
: ImageButton{parent_rect, &bitmap_sd_card_unknown, detail::color_sd_card_unknown, Theme::getInstance()->bg_dark->background} {
|
||||
}
|
||||
|
||||
void SDCardStatusView::on_show() {
|
||||
@@ -101,7 +101,7 @@ void SDCardStatusView::paint(Painter& painter) {
|
||||
set_bitmap(&detail::bitmap_sd_card(status));
|
||||
set_foreground(detail::color_sd_card(status));
|
||||
|
||||
Image::paint(painter);
|
||||
ImageButton::paint(painter);
|
||||
}
|
||||
|
||||
void SDCardStatusView::on_status(const sd_card::Status) {
|
||||
|
||||
Reference in New Issue
Block a user