mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-18 04:07:55 -06:00
Define 'filelist' for dgus/origin
This commit is contained in:
parent
741e3c1280
commit
a95a21a353
2 changed files with 24 additions and 22 deletions
|
@ -42,6 +42,8 @@
|
|||
|
||||
#if ENABLED(SDSUPPORT)
|
||||
|
||||
static ExtUI::FileList filelist;
|
||||
|
||||
void DGUSScreenHandler::DGUSLCD_SD_FileSelected(DGUS_VP_Variable &var, void *val_ptr) {
|
||||
uint16_t touched_nr = (int16_t)swap16(*(uint16_t*)val_ptr) + top_file;
|
||||
if (touched_nr > filelist.count()) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue