adjust cardreader filter to show BMP files

This commit is contained in:
Stefan Kalscheuer
2022-02-05 17:12:11 +01:00
parent cd4905291b
commit 084dfb249a

View File

@@ -233,6 +233,12 @@ bool CardReader::is_visible_entity(const dir_t &p OPTARG(CUSTOM_FIRMWARE_UPLOAD,
|| fileIsBinary() // BIN files are accepted
|| (!onlyBin && p.name[8] == 'G'
&& p.name[9] != '~') // Non-backup *.G* files are accepted
// PATCH START: KNUTWURST
#if ENABLED(KNUTWURST_MEGA_P)
|| (!onlyBin && p.name[8] == 'B' // Bitmap files for Anycubic laser engraving on Mega Pro.
&& p.name[9] != '~')
#endif
// PATCH ENDT: KNUTWURST
);
}