Skip to content

Commit

Permalink
Fix issue #519, FreeRTOS compilation error in Arduino Pico SDK v3.2.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Jun 7, 2023
1 parent fbe1b70 commit 210a4c0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
6 changes: 0 additions & 6 deletions examples/RTDB/DataChangesListener/Callback/Callback.ino
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,6 @@ void loop()
#if defined(ARDUINO_RASPBERRY_PI_PICO_W)

Firebase.RTDB.runStream();

// Note: For Raspberry Pi Pico, FreeRTOS was not use by default in this library. To enable FreeRTOS, please include FreeRTOS.h in FirebaseFS.h or in CustomFirebaseFS.h.
// That is why Firebase.RTDB.runStream was develped to handle stream with callback especially in Pico.

// In case using runStream function, FreeRTOS stream task will be discarded and later deleted to free memory,
// while event data will sent to the callback function whenever the runStream was executed in loop.

#endif

Expand Down
6 changes: 0 additions & 6 deletions examples/RTDB/DataChangesListener/MultiPath/MultiPath.ino
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,6 @@ void loop()

Firebase.RTDB.runStream();

// Note: For Raspberry Pi Pico, FreeRTOS was not use by default in this library. To enable FreeRTOS, please include FreeRTOS.h in FirebaseFS.h or in CustomFirebaseFS.h.
// That is why Firebase.RTDB.runStream was develped to handle stream with callback especially in Pico.

// In case using runStream function, FreeRTOS stream task will be discarded and later deleted to free memory,
// while event data will sent to the callback function whenever the runStream was executed in loop.

#endif

if (Firebase.ready() && (millis() - sendDataPrevMillis > 15000 || sendDataPrevMillis == 0))
Expand Down
8 changes: 2 additions & 6 deletions src/FirebaseFS.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,6 @@ static SdFat sd_fat_fs; // should declare as static here

#endif

// For Raspberry Pi Pico, FreeRTOS was not used in this library by default as it can cause some operation deadlocks.
// To use or enable FreeRTOS in this library, include FreeRTOS header in this file or CustomFirebaseFS.h.

// For Raspberry Pi Pico, to use FreeRTOS in this library, please include FreeRTOS.h in this file or in CustomFirebaseFS.h.

// If FreeRTOS was not used in this library, the Google Cloud Storage's Resumable upload, Firebase Functions deployment and RTDB queue tasks will not work,
// and RTDB stream callback requires Firebase.RTDB.runStream() function to call in the loop.

// Please do not use FreeRTOS in Arduino Pico SDK older than v3.2.1 because of deadlocks issue when accessing flash.

0 comments on commit 210a4c0

Please sign in to comment.