From bb60d582367fb7b26fff7a4871f811ca8967dba6 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 17 Feb 2024 22:03:04 +0700 Subject: [PATCH] Fix compilation error for SdFat. --- LICENSE | 2 +- README.md | 2 +- library.json | 2 +- library.properties | 2 +- src/README.md | 2 +- src/client/FB_TCP_Client.h | 4 ++-- src/core/Firebase_Client_Version.h | 4 ++-- src/rtdb/FB_RTDB.cpp | 8 ++++---- src/rtdb/FB_RTDB.h | 4 ++-- 9 files changed, 15 insertions(+), 15 deletions(-) diff --git a/LICENSE b/LICENSE index c22fc2301..820cb05ea 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 mobizt +Copyright (c) 2024 mobizt Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index cfcc6e36a..989a8534b 100644 --- a/README.md +++ b/README.md @@ -2083,7 +2083,7 @@ Thanks for all contributions and Google Open Source. The MIT License (MIT) -Copyright (c) 2023 K. Suwatchai (Mobizt) +Copyright (c) 2024 K. Suwatchai (Mobizt) Permission is hereby granted, free of charge, to any person returning a copy of diff --git a/library.json b/library.json index 02b0bb60b..081ca8fdb 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "Firebase Arduino Client Library for ESP8266 and ESP32", - "version": "4.4.10", + "version": "4.4.11", "keywords": "communication, REST, esp32, esp8266, arduino", "description": "The library supports Firebase products e.g. Realtime database, Cloud Firestore database, Firebase Storage and Google Cloud Storage, Cloud Functions for Firebase and Cloud Messaging. The library also supported other Arduino devices using Clients interfaces e.g. WiFiClient, EthernetClient, and GSMClient.", "repository": { diff --git a/library.properties b/library.properties index 5f223f64d..fc43adb25 100644 --- a/library.properties +++ b/library.properties @@ -1,6 +1,6 @@ name=Firebase Arduino Client Library for ESP8266 and ESP32 -version=4.4.10 +version=4.4.11 author=Mobizt diff --git a/src/README.md b/src/README.md index d8dacfdf8..6a8a766bf 100644 --- a/src/README.md +++ b/src/README.md @@ -5938,7 +5938,7 @@ e.g. to(), to(), to() The MIT License (MIT) -Copyright (c) 2023 K. Suwatchai (Mobizt) +Copyright (c) 2024 K. Suwatchai (Mobizt) Permission is hereby granted, free of charge, to any person returning a copy of diff --git a/src/client/FB_TCP_Client.h b/src/client/FB_TCP_Client.h index 8887722de..625102e3a 100644 --- a/src/client/FB_TCP_Client.h +++ b/src/client/FB_TCP_Client.h @@ -462,7 +462,7 @@ class Firebase_TCP_Client : public Client if (_client_type == firebase_client_type_external_generic_client && (!_network_connection_cb || !_network_status_cb)) rdy = false; - else if (_client_type != firebase_client_type_external_generic_client || + else if (_client_type != firebase_client_type_external_generic_client && _client_type != firebase_client_type_external_gsm_client) rdy = false; #else @@ -658,7 +658,7 @@ class Firebase_TCP_Client : public Client size_t write(const uint8_t *data, size_t size) { - + if (!_tcp_client) return setError(FIREBASE_ERROR_TCP_CLIENT_NOT_INITIALIZED); diff --git a/src/core/Firebase_Client_Version.h b/src/core/Firebase_Client_Version.h index 1d9439630..49f579fbf 100644 --- a/src/core/Firebase_Client_Version.h +++ b/src/core/Firebase_Client_Version.h @@ -1,6 +1,6 @@ #ifndef FIREBASE_CLIENT_VERSION -#define FIREBASE_CLIENT_VERSION "4.4.10" -#define FIREBASE_CLIENT_VERSION_NUM 40410 +#define FIREBASE_CLIENT_VERSION "4.4.11" +#define FIREBASE_CLIENT_VERSION_NUM 40411 #define FIREBASE_CLIENT_VERSION_CHECK(ver) (true) #endif \ No newline at end of file diff --git a/src/rtdb/FB_RTDB.cpp b/src/rtdb/FB_RTDB.cpp index a3873874d..72c55a49a 100644 --- a/src/rtdb/FB_RTDB.cpp +++ b/src/rtdb/FB_RTDB.cpp @@ -1,8 +1,8 @@ /** - * Google's Firebase Realtime Database class, FB_RTDB.cpp version 2.1.1 + * Google's Firebase Realtime Database class, FB_RTDB.cpp version 2.1.2 * - * Created September 13, 2023 + * Created February 17, 2024 * * The MIT License (MIT) * Copyright (c) 2023 K. Suwatchai (Mobizt) @@ -1352,14 +1352,14 @@ uint8_t FB_RTDB::readQueueFileSdFat(FirebaseData *fbdo, MBFS_SD_FILE &file, Queu while (file.available()) { - Core.ut.FBUtils::idle(); + FBUtils::idle(); if (arr.readFrom(file)) { if (mode == 1) { for (size_t i = 0; i < arr.size(); i++) { - Core.ut.FBUtils::idle(); + FBUtils::idle(); arr.get(result, i); if (result.success) { diff --git a/src/rtdb/FB_RTDB.h b/src/rtdb/FB_RTDB.h index 2338f57c6..2a7131776 100644 --- a/src/rtdb/FB_RTDB.h +++ b/src/rtdb/FB_RTDB.h @@ -1,8 +1,8 @@ /** - * Google's Firebase Realtime Database class, FB_RTDB.h version 2.1.1 + * Google's Firebase Realtime Database class, FB_RTDB.cpp version 2.1.2 * - * Created September 13, 2023 + * Created February 17, 2024 * * The MIT License (MIT) * Copyright (c) 2023 K. Suwatchai (Mobizt)