buf[0] = filename_hash(filename); | buf[0] = filename_hash(filename); | ||||
SerialFlash.write(buf, 8 + index * 2, 2); | SerialFlash.write(buf, 8 + index * 2, 2); | ||||
while (!SerialFlash.ready()) ; // TODO: timeout | while (!SerialFlash.ready()) ; // TODO: timeout | ||||
return false; | |||||
return true; | |||||
} | } | ||||
bool SerialFlashChip::readdir(char *filename, uint32_t strsize, uint32_t &filesize) | bool SerialFlashChip::readdir(char *filename, uint32_t strsize, uint32_t &filesize) |