Skip to content

Commit 9c04c2f

Browse files
committed
enable ci build for esp32s2 board
1 parent bd13893 commit 9c04c2f

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

examples/MassStorage/msc_esp32_file_browser/.magtag.test.only

Whitespace-only changes.

examples/MassStorage/msc_esp32_file_browser/.metroesp32s2.test.only

Whitespace-only changes.

examples/MassStorage/msc_esp32_file_browser/msc_esp32_file_browser.ino

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,10 @@ void setupServer(void)
168168

169169
void setup()
170170
{
171+
#ifdef LED_BUILTIN
171172
pinMode(LED_BUILTIN, OUTPUT);
173+
#endif
174+
172175
DBG_SERIAL.begin(115200);
173176

174177
setupMassStorage();
@@ -428,7 +431,9 @@ int32_t msc_read_cb (uint32_t lba, void* buffer, uint32_t bufsize)
428431
// return number of written bytes (must be multiple of block size)
429432
int32_t msc_write_cb (uint32_t lba, uint8_t* buffer, uint32_t bufsize)
430433
{
434+
#ifdef LED_BUILTIN
431435
digitalWrite(LED_BUILTIN, HIGH);
436+
#endif
432437

433438
// Note: SPIFLash Bock API: readBlocks/writeBlocks/syncBlocks
434439
// already include 4K sector caching internally. We don't need to cache it, yahhhh!!
@@ -447,5 +452,7 @@ void msc_flush_cb (void)
447452

448453
fs_changed = true;
449454

455+
#ifdef LED_BUILTIN
450456
digitalWrite(LED_BUILTIN, LOW);
457+
#endif
451458
}

0 commit comments

Comments
 (0)