Skip to content

Commit 344867c

Browse files
dhineshkumarmcciterrillmoore
authored andcommitted
replaced constant 0 with the defined constant
1 parent 062a6b6 commit 344867c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lmic/lmic.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,8 +1561,8 @@ static bit_t processJoinAccept (void) {
15611561
if (seErr != LMIC_SecureElement_Error_OK)
15621562
return processJoinAccept_badframe();
15631563

1564-
LMIC_SecureElement_getAppSKey(&AppSKey, 0);
1565-
LMIC_SecureElement_getNwkSKey(&NwkSKey, 0);
1564+
LMIC_SecureElement_getAppSKey(&AppSKey, LMIC_SecureElement_KeySelector_Unicast);
1565+
LMIC_SecureElement_getNwkSKey(&NwkSKey, LMIC_SecureElement_KeySelector_Unicast);
15661566

15671567
memcpy(LMIC.artKey, AppSKey.bytes, sizeof(LMIC.artKey));
15681568
memcpy(LMIC.nwkKey, NwkSKey.bytes, sizeof(LMIC.nwkKey));

0 commit comments

Comments
 (0)