Skip to content

Firebase: update arduino core define #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 9, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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