Simplified LoRaWAN library.
Fork of LoRaWAN-lib-v1_0_1 by
Diff: LoRaMac.cpp
- Revision:
- 12:54937781831b
- Parent:
- 11:58f66381eb7c
--- a/LoRaMac.cpp Fri Nov 10 09:22:15 2017 +0000 +++ b/LoRaMac.cpp Tue Apr 03 17:01:27 2018 +0000 @@ -2873,13 +2873,13 @@ ChannelsMask[3] = 0x0000; ChannelsMask[4] = 0x0001; ChannelsMask[5] = 0x0000; - - memcpy1( ( uint8_t* ) ChannelsMaskRemaining, ( uint8_t* ) ChannelsMask, sizeof( ChannelsMask ) ); + + memcpy1( ( uint8_t* ) ChannelsMaskRemaining, ( uint8_t* ) ChannelsMask, sizeof( ChannelsMask ) ); //save channel mask in memory #else #error "Please define a frequency band in the compiler options." #endif -#if defined( USE_BAND_915 ) || defined( USE_BAND_915_HYBRID ) +#if defined( USE_BAND_915 ) || defined( USE_BAND_915_HYBRID ) //set frequency for channels // 125 kHz channels for( uint8_t i = 0; i < LORA_MAX_NB_CHANNELS - 8; i++ ) { @@ -2887,7 +2887,7 @@ Channels[i].DrRange.Value = ( DR_3 << 4 ) | DR_0; Channels[i].Band = 0; } - // 500 kHz channels + // 500 kHz channels1 for( uint8_t i = LORA_MAX_NB_CHANNELS - 8; i < LORA_MAX_NB_CHANNELS; i++ ) { Channels[i].Frequency = 903.0e6 + ( i - ( LORA_MAX_NB_CHANNELS - 8 ) ) * 1.6e6;