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

Commit be1a7da

Browse files
committed
FirebaseArduino: fix error check
1 parent 2f9b0ca commit be1a7da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FirebaseArduino.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ FirebaseObject FirebaseArduino::readEvent() {
7272
}
7373

7474
bool FirebaseArduino::success() {
75-
return error_;
75+
return error_.code() == 0;
7676
}
7777

7878
bool FirebaseArduino::failed() {
79-
return !error_;
79+
return error_.code() != 0;
8080
}
8181

8282
const String& FirebaseArduino::error() {

0 commit comments

Comments
 (0)