From 067cef68216a2a6d42ea55bccffb1f84b634d051 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 5 Mar 2023 05:48:48 +0700 Subject: [PATCH] Fix Firebase pause issue and update internal file management class. --- src/FirebaseFS.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/FirebaseFS.h b/src/FirebaseFS.h index dcbbbd82..ba69784a 100644 --- a/src/FirebaseFS.h +++ b/src/FirebaseFS.h @@ -25,7 +25,7 @@ */ #if defined(ESP8266) #define DEFAULT_FLASH_FS SPIFFS -#elif defined(PICO_RP2040) +#elif defined(ARDUINO_ARCH_RP2040) && !defined(ARDUINO_NANO_RP2040_CONNECT) #include #define DEFAULT_FLASH_FS LittleFS #endif @@ -44,7 +44,7 @@ #include #define DEFAULT_SD_FS SD #define CARD_TYPE_SD 1 -#elif defined(PICO_RP2040) +#elif defined(ARDUINO_ARCH_RP2040) && !defined(ARDUINO_NANO_RP2040_CONNECT) // Use SDFS (ESP8266SdFat) instead of SD #include #define DEFAULT_SD_FS SDFS @@ -77,19 +77,17 @@ // For ESP8266 W5500 Ethernet module // #define ENABLE_ESP8266_W5500_ETH - // To enable external Client for ESP8266. // This will enable automatically for other devices. // #define FB_ENABLE_EXTERNAL_CLIENT - //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// -// You can create your own header file "CustomFirebaseFS.h" in the same diectory of -// "FirebaseFS.h" and put your own custom config to overwrite or +// You can create your own header file "CustomFirebaseFS.h" in the same diectory of +// "FirebaseFS.h" and put your own custom config to overwrite or // change the default config in "FirebaseFS.h". //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::// -/** This is an example of "CustomFirebaseFS.h" +/** This is an example of "CustomFirebaseFS.h" #pragma once @@ -125,6 +123,6 @@ #endif /////////////////////////////////// WARNING /////////////////////////////////// -// Using RP2040 Pico Arduino SDK, FreeRTOS with LittleFS will cause device hangs +// Using RP2040 Pico Arduino SDK, FreeRTOS with LittleFS will cause device hangs // when write the data to flash filesystem. // Do not include FreeRTOS.h or even it excluded from compilation by using macro, it issue. \ No newline at end of file