Skip to content

Commit

Permalink
Fix compilation error issue #76
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed May 22, 2024
1 parent 489dedd commit 628ed73
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "FirebaseClient",
"version": "1.2.4",
"version": "1.2.5",
"keywords": "communication, REST, esp32, esp8266, arduino",
"description": "Async Firebase Client library for Arduino.",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name=FirebaseClient

version=1.2.4
version=1.2.5

author=Mobizt

Expand Down
14 changes: 9 additions & 5 deletions src/core/AsyncClient/AsyncClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -1643,9 +1643,9 @@ class AsyncClientClass : public ResultBase, RTDBResultBase

if (ret)
{
String msg = FPSTR("Connected, IP: ");
msg += FIREBASE_ETHERNET_MODULE_CLASS_IMPL.localIP().toString();
setDebugBase(app_debug, msg);
String debug = FPSTR("Connected, IP: ");
debug += FIREBASE_ETHERNET_MODULE_CLASS_IMPL.localIP().toString();
setDebugBase(app_debug, debug);
}
else
{
Expand All @@ -1663,7 +1663,12 @@ class AsyncClientClass : public ResultBase, RTDBResultBase
bool ethernetConnected()
{
#if defined(FIREBASE_ETHERNET_MODULE_IS_AVAILABLE)
#if defined(ENABLE_ETHERNET_NETWORK)
if (net.ethernet.conn_satatus != network_config_data::ethernet_conn_status_waits)
net.network_status = FIREBASE_ETHERNET_MODULE_CLASS_IMPL.linkStatus() == LinkON && validIP(FIREBASE_ETHERNET_MODULE_CLASS_IMPL.localIP());
#else
net.network_status = FIREBASE_ETHERNET_MODULE_CLASS_IMPL.linkStatus() == LinkON && validIP(FIREBASE_ETHERNET_MODULE_CLASS_IMPL.localIP());
#endif
#endif
return net.network_status;
}
Expand Down Expand Up @@ -1742,8 +1747,7 @@ class AsyncClientClass : public ResultBase, RTDBResultBase
}
else if (net.network_data_type == firebase_network_data_ethernet_network)
{
if (net.ethernet.conn_satatus != network_config_data::ethernet_conn_status_waits)
net.network_status = ethernetConnected();
net.network_status = ethernetConnected();
}
// also check the native network before calling external cb
else if (net.network_data_type == firebase_network_data_default_network || WiFI_CONNECTED || ethLinkUp())
Expand Down
2 changes: 1 addition & 1 deletion src/core/AsyncResult/AppDebug.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ namespace firebase

void setDebug(const String &msg)
{

if (msg.length() == 0 || strcmp(last.c_str(), msg.c_str()) == 0)
return;

Expand Down
2 changes: 1 addition & 1 deletion src/core/Core.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#undef FIREBASE_CLIENT_VERSION
#endif

#define FIREBASE_CLIENT_VERSION "1.2.4"
#define FIREBASE_CLIENT_VERSION "1.2.5"

static void sys_idle()
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/NetConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ struct network_config_data
ethernet_conn_status_rst_pin_selected,
ethernet_conn_status_rst_pin_released,
ethernet_conn_status_begin,
ethernet_conn_status_waits,
ethernet_conn_status_waits
};

// SPI Ethernet Module Data
Expand Down

0 comments on commit 628ed73

Please sign in to comment.