Skip to content

Commit 552a8c4

Browse files
committed
clean up
1 parent 56c6b6d commit 552a8c4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cores/nRF5/flash/flash_qspi.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@
2525
#ifdef NRF52840_XXAA
2626

2727
#include "Arduino.h"
28+
29+
#ifdef EXTERNAL_FLASH_DEVICES
30+
2831
#include "flash_devices.h"
2932
#include "flash_qspi.h"
3033
#include "flash_cache.h"
3134
#include "nrfx_qspi.h"
3235

33-
#ifdef EXTERNAL_FLASH_DEVICES
3436

3537
//--------------------------------------------------------------------+
3638
// MACRO TYPEDEF CONSTANT ENUM DECLARATION
@@ -181,7 +183,7 @@ void flash_qspi_init (void)
181183
uint8_t const mfgr_id = id_resp[3];
182184
uint8_t const dev_id = id_resp[4];
183185

184-
// quick hack
186+
// Debug
185187
// printf("qspi mfgr id : 0x%02X\n", mfgr_id);
186188
// printf("qspi device id: 0x%02X\n", dev_id);
187189
// PRINT_BUFFER(id_resp, sizeof(id_resp));
@@ -250,4 +252,3 @@ static bool fal_qspi_verify (uint32_t addr, void const * buf, uint32_t len)
250252

251253
#endif // external flash
252254
#endif // nrf52840
253-

0 commit comments

Comments
 (0)