Fix ExtUI SD sorting, compile issues
This commit is contained in:
committed by
Scott Lahteine
parent
2af9e2f759
commit
ba6659f6be
@ -61,7 +61,7 @@ namespace ExtUI {
|
||||
if (AT_SCREEN(StatusScreen) || isPrintingFromMedia())
|
||||
StatusScreen::setStatusMessage(GET_TEXT_F(MSG_MEDIA_REMOVED));
|
||||
|
||||
if (AT_SCREEN(FilesScreen)) GOTO_SCREEN(StatusScreen)
|
||||
if (AT_SCREEN(FilesScreen)) GOTO_SCREEN(StatusScreen);
|
||||
}
|
||||
|
||||
void onMediaError() {
|
||||
|
@ -1003,7 +1003,7 @@ namespace ExtUI {
|
||||
bool FileList::seek(const uint16_t pos, const bool skip_range_check) {
|
||||
#if ENABLED(SDSUPPORT)
|
||||
if (!skip_range_check && (pos + 1) > count()) return false;
|
||||
card.getfilename_sorted(pos);
|
||||
card.getfilename_sorted(SD_ORDER(pos, count()));
|
||||
return card.filename[0] != '\0';
|
||||
#else
|
||||
UNUSED(pos);
|
||||
|
Reference in New Issue
Block a user