Skip to content

Commit da308ad

Browse files
committed
fixes
1 parent 6104b9d commit da308ad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cores/esp8266/Esp.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "MD5Builder.h"
2727
#include "umm_malloc/umm_malloc.h"
2828
#include "cont.h"
29+
#include "flash_hal.h"
2930

3031
extern "C" {
3132
#include "user_interface.h"
@@ -293,7 +294,7 @@ uint32_t EspClass::getFlashChipRealSize(void)
293294

294295
uint32_t EspClass::getFlashChipSize(void)
295296
{
296-
#if 1
297+
#if AUTOFLASHSIZE
297298
return getFlashChipRealSize();
298299
#else
299300
uint32_t data;
@@ -329,7 +330,7 @@ FlashMode_t EspClass::getFlashChipMode(void)
329330
return mode;
330331
}
331332

332-
#if 0
333+
#if !AUTOFLASHSIZE
333334
uint32_t EspClass::magicFlashChipSize(uint8_t byte) {
334335
switch(byte & 0x0F) {
335336
case 0x0: // 4 Mbit (512KB)

0 commit comments

Comments
 (0)