Astyle format ting

99.9% white space changes
feature-lorawan-1-1
Unknown 2019-04-30 14:49:29 -04:00 committed by Antti Kauppila
parent ab166720f2
commit 4e11aa0bcc
7 changed files with 12 additions and 12 deletions

View File

@ -46,7 +46,7 @@ SPDX-License-Identifier: BSD-3-Clause
#define CLASSB_PING_SLOT_WINDOW 30
/*!
* Invalid ping slot
* Invalid ping slot
*/
#define LORAMAC_INVALID_PING_SLOT -1

View File

@ -74,12 +74,12 @@ protected:
lorawan_status_t enable(void);
/**
* Disable Class B
* Disable Class B
*/
lorawan_status_t disable(void);
/**
* Temporarily pause Class B operation during class A uplink & rx windows
* Temporarily pause Class B operation during class A uplink & rx windows
*/
void pause(void);
@ -129,7 +129,7 @@ protected:
}
/**
* Returns True if beacon acquisition/tracking is enabled
* Returns True if beacon acquisition/tracking is enabled
*/
inline bool is_operational(void)
{

View File

@ -88,7 +88,7 @@ void LoRaMacCommand::parse_mac_commands_to_repeat()
break;
}
case MOTE_MAC_LINK_ADR_ANS:
case MOTE_MAC_NEW_CHANNEL_ANS:
case MOTE_MAC_NEW_CHANNEL_ANS:
case MOTE_MAC_PING_SLOT_INFO_REQ: { // 1 byte payload
i++;
break;

View File

@ -282,7 +282,7 @@ private:
/**
* @brief Adds a new PingSlotChannelAns MAC command to be sent.
* @param status Status bits
* @param status Status bits
* @return status Function status: LORAWAN_STATUS_OK: OK,
* LORAWAN_STATUS_LENGTH_ERROR: Buffer full
*/
@ -290,7 +290,7 @@ private:
/**
* @brief Adds a new BeaconFreqAns MAC command to be sent.
* @param status Status bits
* @param status Status bits
* @return status Function status: LORAWAN_STATUS_OK: OK,
* LORAWAN_STATUS_LENGTH_ERROR: Buffer full
*/

View File

@ -180,8 +180,8 @@ public:
/**
* Computes random value used to compute Ping slot offset (1.1 ch 13.2)
*
* @param [in] beacon_time - Time carried in beacon payload
* @param [in] dev_addr - Device Address
* @param [in] beacon_time - Time carried in beacon payload
* @param [in] dev_addr - Device Address
* @param [out] rand
*
* @return 0 if successful, or a cipher specific error code

View File

@ -76,7 +76,7 @@ void LoRaWANTimeHandler::set_gps_time(lorawan_gps_time_t gps_time)
lorawan_gps_time_t LoRaWANTimeHandler::get_gps_time(void)
{
if(_gps_time == 0){
if (_gps_time == 0) {
return _gps_time;
}
return _gps_time + get_current_time() - _monotonic_tick_time;

View File

@ -46,7 +46,7 @@ typedef uint32_t lorawan_time_t;
/*!
* \brief GPS time in milliseconds
* \brief GPS time in milliseconds
*/
#ifndef lorawan_gps_time_t
typedef uint64_t lorawan_gps_time_t;
@ -88,7 +88,7 @@ typedef uint64_t lorawan_gps_time_t;
#endif
/**
*
*
* Network Beacon Gateway Specific field length
*/
#define LORAMAC_BEACON_GW_SPECIFIC_LEN 7