Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit 3c0721b

Browse files
committed
Merge pull request #107 from proppy/fix-get-error
FirebaseArduino: fix get error checking
2 parents 442baf8 + f09799c commit 3c0721b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FirebaseArduino.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void FirebaseArduino::set(const String& path, const JsonVariant& value) {
4141
FirebaseObject FirebaseArduino::get(const char* path) {
4242
auto get = FirebaseGet(host_, auth_, path, http_.get());
4343
error_ = get.error();
44-
if (!error_) {
44+
if (failed()) {
4545
return FirebaseObject{""};
4646
}
4747
return FirebaseObject(get.response());

0 commit comments

Comments
 (0)