Skip to content

Commit 4500ae7

Browse files
committed
Enable saveState for RN2903AS.
This problem was caused by not waiting for an ok after mac save. Fixed by #211
1 parent 0601d8d commit 4500ae7

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/TheThingsNetwork.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -485,17 +485,7 @@ bool TheThingsNetwork::provision(const char *appEui, const char *appKey)
485485
sendMacSet(MAC_DEVEUI, buffer);
486486
sendMacSet(MAC_APPEUI, appEui);
487487
sendMacSet(MAC_APPKEY, appKey);
488-
switch (fp)
489-
{
490-
case TTN_FP_AS920_923:
491-
case TTN_FP_AS923_925:
492-
case TTN_FP_KR920_923:
493-
// TODO: temporarily removed 'mac save' because RN2903AS crashes on this command!
494-
break;
495-
default:
496-
saveState();
497-
break;
498-
}
488+
saveState();
499489
return true;
500490
}
501491

0 commit comments

Comments
 (0)