1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-23 08:45:22 +03:00

fix buffer and block size

This commit is contained in:
ficeto
2015-05-18 21:45:00 +03:00
parent 0b89f8ab43
commit 18349b2090
2 changed files with 8 additions and 2 deletions

View File

@ -175,6 +175,12 @@ uint32_t EspClass::getFlashChipSize(void)
return (2_MB);
case 0x4: // 32 MBit (4MB)
return (4_MB);
case 0x5: // 64 MBit (8MB)
return (8_MB);
case 0x6: // 128 MBit (16MB)
return (16_MB);
case 0x7: // 256 MBit (32MB)
return (32_MB);
default: // fail?
return 0;
}