Skip to content

Commit fc5013f

Browse files
namespace experimental for initFlashQuirks()
1 parent 55c23cf commit fc5013f

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

cores/esp8266/core_esp8266_flash_quirks.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
extern "C" {
2929
#endif
3030

31+
namespace experimental {
32+
3133
static int get_flash_mhz() {
3234
// FIXME: copied from Esp.cpp - we really should define the magic values
3335
uint32_t data;
@@ -76,6 +78,8 @@ void initFlashQuirks() {
7678
}
7779
}
7880

81+
} // namespace experimental
82+
7983
#ifdef __cplusplus
8084
}
8185
#endif

cores/esp8266/core_esp8266_main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ extern "C" void user_init(void) {
318318

319319
initVariant();
320320

321-
initFlashQuirks(); // Chip specific flash init.
321+
experimental::initFlashQuirks(); // Chip specific flash init.
322322

323323
cont_init(g_pcont);
324324

cores/esp8266/flash_quirks.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,12 @@ extern "C" {
2828
#include "spi_vendors.h"
2929
#include "spi_flash_defs.h"
3030

31+
namespace experimental {
32+
3133
void initFlashQuirks();
3234

35+
} // namespace experimental
36+
3337
#ifdef __cplusplus
3438
}
3539
#endif

0 commit comments

Comments
 (0)