Skip to content

Commit

Permalink
Some optimization.
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Jun 15, 2023
1 parent b0b6ec9 commit 6729906
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 7 additions & 3 deletions src/FB_Const.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,20 @@
#include <functional>
#endif

#include "FB_Network.h"
#include "FirebaseFS.h"
#include "./mbfs/MB_FS.h"
#include "FB_Network.h"

#if defined(DEFAULT_FLASH_FS) || defined(DEFAULT_SD_FS)
#define FIREBASEJSON_USE_FS
#endif

#if defined(FIREBASE_USE_PSRAM)
#define FIREBASEJSON_USE_PSRAM
#endif

// FirebaseJson was already included in MB_FS.h
#include "./mbfs/MB_FS.h"

#include "json/FirebaseJson.h"
#include "MB_NTP.h"

#if defined(ENABLE_OTA_FIRMWARE_UPDATE) && (defined(ENABLE_RTDB) || defined(ENABLE_FB_STORAGE) || defined(ENABLE_GC_STORAGE))
Expand Down
6 changes: 2 additions & 4 deletions src/FirebaseFS.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,8 @@ static SdFat sd_fat_fs; // should declare as static here
// Use Keep Alive connection mode
#define USE_CONNECTION_KEEP_ALIVE_MODE


#if defined(DEFAULT_FLASH_FS) || defined(DEFAULT_SD_FS)
#define FIREBASEJSON_USE_FS
#endif
// To enable TCP KeepAlive for RTDB stream
// #define ENABLE_TCP_KEEP_ALIVE_FOR_RTDB_STREAM

// To enable external Client for ESP8266, ESP32 and Raspberry Pi Pico.
// This will enable automatically for other devices.
Expand Down

0 comments on commit 6729906

Please sign in to comment.