Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  NB_NetworkStatus_t::ERROR has been renamed to NB_NetworkStatus_t::NB_ERROR in MKRNB library release 1.6.0
  • Loading branch information
pennam committed Oct 23, 2023
1 parent 3add8e1 commit 8d245fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Arduino_NBConnectionHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ NetworkConnectionState NBConnectionHandler::update_handleConnecting()
{
NB_NetworkStatus_t const network_status = _nb_gprs.attachGPRS(true);
Debug.print(DBG_DEBUG, F("GPRS.attachGPRS(): %d"), network_status);
if (network_status == NB_NetworkStatus_t::ERROR)
if (network_status == NB_NetworkStatus_t::NB_ERROR)
{
Debug.print(DBG_ERROR, F("GPRS.attachGPRS() failed"));
return NetworkConnectionState::ERROR;
Expand Down

0 comments on commit 8d245fe

Please sign in to comment.