Skip to content

Commit bde6c73

Browse files
fixup! readapting ConnectionHandler implementation to use setting struct
1 parent 314251d commit bde6c73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LoRaConnectionHandler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ bool LoRaConnectionHandler::available()
103103

104104
NetworkConnectionState LoRaConnectionHandler::update_handleInit()
105105
{
106-
if (!_modem.begin(_settings.lora.band))
106+
if (!_modem.begin((_lora_band)_settings.lora.band))
107107
{
108108
Debug.print(DBG_ERROR, F("Something went wrong; are you indoor? Move near a window, then reset and retry."));
109109
return NetworkConnectionState::ERROR;
@@ -114,7 +114,7 @@ NetworkConnectionState LoRaConnectionHandler::update_handleInit()
114114
}
115115
//A delay is required between _modem.begin(band) and _modem.joinOTAA(appeui, appkey) in order to let the chip to be correctly initialized before the connection attempt
116116
delay(100);
117-
_modem.configureClass(_settings.lora.deviceClass);
117+
_modem.configureClass((_lora_class)_settings.lora.deviceClass);
118118
delay(100);
119119
Debug.print(DBG_INFO, F("Connecting to the network"));
120120
return NetworkConnectionState::CONNECTING;

0 commit comments

Comments
 (0)