Skip to content

Commit

Permalink
revert redundant changes in LoRaMac.h and LoRaMacCrypto.c
Browse files Browse the repository at this point in the history
  • Loading branch information
MedadRufus committed Aug 5, 2022
1 parent 7ad757e commit 81ad56b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 20 deletions.
34 changes: 15 additions & 19 deletions src/mac/LoRaMac.h
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,16 @@ typedef struct sLoRaMacNvmDataGroup2
*/
typedef struct sLoRaMacNvmData
{
/*!
* Parameters related to the crypto layer. Change with every TX/RX
* procedure.
*/
LoRaMacCryptoNvmData_t Crypto;
/*!
* Parameters related to the MAC which change with high probability after
* every TX/RX procedure.
*/
LoRaMacNvmDataGroup1_t MacGroup1;
/*!
* Parameters related to the MAC which do not change very likely with every
* TX/RX procedure.
Expand All @@ -668,7 +678,11 @@ typedef struct sLoRaMacNvmData
* Parameters related to the secure-element.
*/
SecureElementNvmData_t SecureElement;

/*!
* Parameters related to the regional implementation which change with high
* probability after every TX/RX procedure.
*/
RegionNvmDataGroup1_t RegionGroup1;
/*!
* Parameters related to the regional implementation which do not change
* very likely with every TX/RX procedure.
Expand All @@ -678,24 +692,6 @@ typedef struct sLoRaMacNvmData
* Parameters related to class b.
*/
LoRaMacClassBNvmData_t ClassB;

/*!
* Parameters related to the crypto layer. Change with every TX/RX
* procedure.
*/
LoRaMacCryptoNvmData_t Crypto;
/*!
* Parameters related to the MAC which change with high probability after
* every TX/RX procedure.
*/
LoRaMacNvmDataGroup1_t MacGroup1;

/*!
* Parameters related to the regional implementation which change with high
* probability after every TX/RX procedure.
*/
RegionNvmDataGroup1_t RegionGroup1;

}LoRaMacNvmData_t;

/*!
Expand Down
1 change: 0 additions & 1 deletion src/mac/LoRaMacCrypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,6 @@ static void UpdateFCntDown( FCntIdentifier_t fCntID, uint32_t currentDown )
}
}


/*!
* Resets the frame counters
*/
Expand Down

0 comments on commit 81ad56b

Please sign in to comment.