MCPcopy Create free account
hub / github.com/MarlinFirmware/Marlin / selectFileByIndexSorted

Method selectFileByIndexSorted

Marlin/src/sd/cardreader.cpp:1297–1299  ·  view source on GitHub ↗

* Get the name of a file in the working directory by sort-index */

Source from the content-addressed store, hash-verified

1295 * Get the name of a file in the working directory by sort-index
1296 */
1297 void CardReader::selectFileByIndexSorted(const int16_t nr) {
1298 selectFileByIndex(SortFlag(TERN1(SDSORT_GCODE, sort_alpha != AS_OFF)) && (nr < sort_count) ? sort_order[nr] : nr);
1299 }
1300
1301 #if ENABLED(SDSORT_USES_RAM)
1302 #if ENABLED(SDSORT_DYNAMIC_RAM)

Callers 12

seekMethod · 0.45
search_fileFunction · 0.45
exploreDiskFunction · 0.45
menu_file_selectorFunction · 0.45
initShiftNameFunction · 0.45
drawSDItemFunction · 0.45
hmiSelectFileFunction · 0.45
onClickSDItemFunction · 0.45
fileMenuIdleFunction · 0.45
onDrawFileNameFunction · 0.45
drawSDItemMethod · 0.45
fileControlMethod · 0.45

Calls 1

SortFlagEnum · 0.85

Tested by

no test coverage detected