MCPcopy Create free account
hub / github.com/OpenEarable/open-earable / read_block

Method read_block

src/utils/SDManager.cpp:86–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86unsigned int SDManager::read_block(ExFatFile *file, uint8_t *block, int size) {
87 if (!_available) return 0;
88 _lastFile = file;
89 return file->read(block, size);
90}
91
92void SDManager::_read_sd_state() {
93 sd_manager.sd_inserted = digitalRead(EPIN_SD_STATE);

Callers 3

check_formatMethod · 0.80
preload_bufferMethod · 0.80
sd_to_bufferMethod · 0.80

Calls 1

readMethod · 0.80

Tested by

no test coverage detected