|
@ -42,6 +42,8 @@ |
|
|
|
|
|
|
|
|
#if ENABLED(SDSUPPORT) |
|
|
#if ENABLED(SDSUPPORT) |
|
|
|
|
|
|
|
|
|
|
|
static ExtUI::FileList filelist; |
|
|
|
|
|
|
|
|
void DGUSScreenHandler::DGUSLCD_SD_FileSelected(DGUS_VP_Variable &var, void *val_ptr) { |
|
|
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; |
|
|
uint16_t touched_nr = (int16_t)swap16(*(uint16_t*)val_ptr) + top_file; |
|
|
if (touched_nr > filelist.count()) return; |
|
|
if (touched_nr > filelist.count()) return; |
|
|