We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
byte
typedef uint8_t byte;
1 parent d136bce commit a8247b1Copy full SHA for a8247b1
cores/esp32/Esp.cpp
@@ -378,7 +378,7 @@ FlashMode_t EspClass::getFlashChipMode(void) {
378
}
379
#endif // if !defined(CONFIG_IDF_TARGET_ESP32P4)
380
381
-uint32_t EspClass::magicFlashChipSize(uint8_t byte) {
+uint32_t EspClass::magicFlashChipSize(uint8_t octet) {
382
/*
383
FLASH_SIZES = {
384
"1MB": 0x00,
@@ -391,7 +391,7 @@ uint32_t EspClass::magicFlashChipSize(uint8_t byte) {
391
"128MB": 0x70,
392
393
*/
394
- switch (byte & 0x0F) {
+ switch (octet & 0x0F) {
395
case 0x0: return (1_MB); // 8 MBit (1MB)
396
case 0x1: return (2_MB); // 16 MBit (2MB)
397
case 0x2: return (4_MB); // 32 MBit (4MB)
0 commit comments