4646
4747#include "LoRaMacTest.h"
4848
49- static CommissioningParams_t CommissioningParams =
49+ static CommissioningParams_t CommissioningParams =
5050{
5151 .IsOtaaActivation = OVER_THE_AIR_ACTIVATION ,
5252 .DevEui = LORAWAN_DEVICE_EUI ,
@@ -92,14 +92,14 @@ static LoRaMacPrimitives_t LoRaMacPrimitives;
9292 */
9393static LoRaMacCallback_t LoRaMacCallbacks ;
9494
95- static LmHandlerJoinParams_t JoinParams =
95+ static LmHandlerJoinParams_t JoinParams =
9696{
9797 .CommissioningParams = & CommissioningParams ,
9898 .Datarate = DR_0 ,
9999 .Status = LORAMAC_HANDLER_ERROR
100100};
101101
102- static LmHandlerTxParams_t TxParams =
102+ static LmHandlerTxParams_t TxParams =
103103{
104104 .CommissioningParams = & CommissioningParams ,
105105 .MsgType = LORAMAC_HANDLER_UNCONFIRMED_MSG ,
@@ -116,7 +116,7 @@ static LmHandlerTxParams_t TxParams =
116116 .Channel = 0
117117};
118118
119- static LmHandlerRxParams_t RxParams =
119+ static LmHandlerRxParams_t RxParams =
120120{
121121 .CommissioningParams = & CommissioningParams ,
122122 .Rssi = 0 ,
@@ -125,11 +125,11 @@ static LmHandlerRxParams_t RxParams =
125125 .RxSlot = -1
126126};
127127
128- static LoRaMAcHandlerBeaconParams_t BeaconParams =
128+ static LoRaMAcHandlerBeaconParams_t BeaconParams =
129129{
130130 .State = LORAMAC_HANDLER_BEACON_ACQUIRING ,
131- .Info =
132- {
131+ .Info =
132+ {
133133 .Time = { .Seconds = 0 , .SubSeconds = 0 },
134134 .Frequency = 0 ,
135135 .Datarate = 0 ,
@@ -145,7 +145,7 @@ static LoRaMAcHandlerBeaconParams_t BeaconParams =
145145
146146/*!
147147 * Indicates if a switch to Class B operation is pending or not.
148- *
148+ *
149149 * TODO: Create a new structure to store the current handler states/status
150150 * and add the below variable to it.
151151 */
@@ -212,7 +212,7 @@ typedef enum PackageNotifyTypes_e
212212
213213/*!
214214 * Notifies the package to process the LoRaMac callbacks.
215- *
215+ *
216216 * \param [IN] notifyType MAC notification type [PACKAGE_MCPS_CONFIRM,
217217 * PACKAGE_MCPS_INDICATION,
218218 * PACKAGE_MLME_CONFIRM,
@@ -385,7 +385,7 @@ void LmHandlerProcess( void )
385385 * Join a LoRa Network in classA
386386 *
387387 * \Note if the device is ABP, this is a pass through function
388- *
388+ *
389389 * \param [IN] isOtaa Indicates which activation mode must be used
390390 */
391391static void LmHandlerJoinRequest ( bool isOtaa )
@@ -407,7 +407,7 @@ static void LmHandlerJoinRequest( bool isOtaa )
407407 else
408408 {
409409 MibRequestConfirm_t mibReq ;
410- LmHandlerJoinParams_t joinParams =
410+ LmHandlerJoinParams_t joinParams =
411411 {
412412 .CommissioningParams = & CommissioningParams ,
413413 .Datarate = LmHandlerParams -> TxDatarate ,
@@ -522,7 +522,7 @@ static LmHandlerErrorStatus_t LmHandlerDeviceTimeReq( void )
522522
523523 status = LoRaMacMlmeRequest ( & mlmeReq );
524524 LmHandlerCallbacks -> OnMacMlmeRequest ( status , & mlmeReq );
525-
525+
526526 if ( status == LORAMAC_STATUS_OK )
527527 {
528528 return LORAMAC_HANDLER_SUCCESS ;
@@ -692,7 +692,7 @@ static void McpsConfirm( McpsConfirm_t *mcpsConfirm )
692692 TxParams .AckReceived = mcpsConfirm -> AckReceived ;
693693
694694 LmHandlerCallbacks -> OnTxData ( & TxParams );
695-
695+
696696 LmHandlerPackagesNotify ( PACKAGE_MCPS_CONFIRM , mcpsConfirm );
697697}
698698
0 commit comments