Skip to content

Commit

Permalink
Merge pull request #2 from proppy/patch-2
Browse files Browse the repository at this point in the history
Firebase: update arduino core define
  • Loading branch information
gguuss committed Feb 9, 2016
2 parents 2ef045b + b8ae21c commit f3dcace
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Firebase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// master branch and patch in missing status and methods.
#ifndef HTTP_CODE_TEMPORARY_REDIRECT
#define HTTP_CODE_TEMPORARY_REDIRECT 307
#define USE_ARDUINO_CORE_2_0_0
#define USE_ESP_ARDUINO_CORE_2_0_0
#endif

namespace {
Expand Down Expand Up @@ -105,7 +105,7 @@ FirebaseCall::FirebaseCall(const String& host, const String& auth,
}

if (status != 200) {
#ifdef USE_ARDUINO_CORE_2_0_0
#ifdef USE_ESP_ARDUINO_CORE_2_0_0
error_ = FirebaseError(status, String(method) + " " + url + ": " + status);
#else
error_ = FirebaseError(status, String(method) + " " + url + ": " + HTTPClient::errorToString(status));
Expand Down

0 comments on commit f3dcace

Please sign in to comment.