Ver código fonte

Merge pull request #28 from eriknyquist/master

SerialFlash: enlarge chip ID buffer
main
Paul Stoffregen 9 anos atrás
pai
commit
826da1a177
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      SerialFlashDirectory.cpp

+ 1
- 1
SerialFlashDirectory.cpp Ver arquivo

// last check, if enough space exists... // last check, if enough space exists...
len = strlen(filename); len = strlen(filename);
// TODO: check for enough string space for filename // TODO: check for enough string space for filename
uint8_t id[3];
uint8_t id[5];
SerialFlash.readID(id); SerialFlash.readID(id);
if (address + length > SerialFlash.capacity(id)) return false; if (address + length > SerialFlash.capacity(id)) return false;



Carregando…
Cancelar
Salvar