Skip to content

Commit

Permalink
Merge pull request #156 from adafruit/fix-esp32-build
Browse files Browse the repository at this point in the history
fix building with esp32 release 3.0.0
  • Loading branch information
hathach authored Oct 9, 2023
2 parents c8107f7 + 6b7f48b commit 4f5c99f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions examples/SdFat_format/SdFat_format.ino
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include "flash_config.h"

Adafruit_SPIFlash flash(&flashTransport);

FatVolume fatfs;

void format_fat12(void)
{
Expand Down Expand Up @@ -82,7 +82,6 @@ void format_fat12(void)
void check_fat12(void)
{
// Check new filesystem
FatVolume fatfs;
if (!fatfs.begin(&flash)) {
Serial.println(F("Error, failed to mount newly formatted filesystem!"));
while(1) delay(1);
Expand Down
2 changes: 2 additions & 0 deletions src/esp32/Adafruit_FlashTransport_ESP32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

#ifdef ARDUINO_ARCH_ESP32

#include "esp_flash.h"

Adafruit_FlashTransport_ESP32::Adafruit_FlashTransport_ESP32(void) {
_cmd_read = SFLASH_CMD_READ;
_addr_len = 3; // work with most device if not set
Expand Down

0 comments on commit 4f5c99f

Please sign in to comment.