File tree Expand file tree Collapse file tree 4 files changed +5
-14
lines changed
Middlewares/Third_Party/Lora/Mac/region
Projects/Multi/Applications/LoRa/DRAGINO-LRWAN(AT) Expand file tree Collapse file tree 4 files changed +5
-14
lines changed Original file line number Diff line number Diff line change 1- STM32CubeExpansion_LRWAN \ Projects \ Multi \ Applications \ LoRa \ DRAGINO-LRWAN(AT) \ MDK-ARM \ STM32L072CZ-Nucleo \ sx1276mb1las \
1+ STM32CubeExpansion_LRWAN / Projects / Multi / Applications / LoRa / DRAGINO-LRWAN(AT) / MDK-ARM / STM32L072CZ-Nucleo / sx1276mb1las / *
Original file line number Diff line number Diff line change 4848// Definitions
4949#define CHANNELS_MASK_SIZE 1
5050
51- extern uint8_t joinrx2_dr ;
5251extern LoRaMacParams_t LoRaMacParams ;
5352extern uint8_t payloadlens ;
5453extern bool DR_small ;
@@ -296,14 +295,7 @@ PhyParam_t RegionEU868GetPhyParam( GetPhyParams_t* getPhy )
296295 }
297296 case PHY_DEF_RX2_DR :
298297 {
299- if (joinrx2_dr == 0 )
300- {
301- phyParam .Value = EU868_RX_WND_2_DR ;
302- }
303- else
304- {
305- phyParam .Value = joinrx2_dr ;
306- }
298+ phyParam .Value = EU868_RX_WND_2_DR ;
307299 break ;
308300 }
309301 case PHY_CHANNELS_MASK :
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ Maintainer: Miguel Luis, Gregory Cristian and Wael Guibene
7272#define TEST_VERSION (uint32_t) 0x00000000 /*1 lsb is always 0 in releases */
7373#define LRWAN_VERSION (uint32_t) 0x00001140 /*3 next hex is i_cube release*/
7474#define VERSION (uint32_t) ( LORA_MAC_VERSION | LRWAN_VERSION | TEST_VERSION )
75- #define AT_VERSION_STRING "v1.7"
75+ #define AT_VERSION_STRING "v1.7.2 "
7676#define AT_LoRaWan_VERSION_STRING "DR-LWS-005"
7777
7878/* Exported types ------------------------------------------------------------*/
Original file line number Diff line number Diff line change @@ -83,7 +83,6 @@ uint16_t fire_version=0;
8383uint16_t fire_frequcy = 0 ;
8484uint8_t mode ;
8585uint8_t inmode ;
86- uint8_t joinrx2_dr ;
8786bool rx2_flags = 0 ;
8887bool fdr_flags = 0 ;
8988
@@ -1170,8 +1169,7 @@ void Read_Config(void)
11701169 if ((rx2_flags == 0 )|| (lora_config .otaa == LORA_DISABLE ))
11711170 {
11721171 mib .Type = MIB_RX2_CHANNEL ;
1173- mib .Param .Rx2Channel .Datarate = r_config [3 ];
1174- joinrx2_dr = r_config [3 ];
1172+ mib .Param .Rx2Channel .Datarate = r_config [3 ];
11751173 LoRaMacMibSetRequestConfirm ( & mib );
11761174 }
11771175 else if (rx2_flags == 1 )
@@ -1287,6 +1285,7 @@ void new_firmware_update(void)
12871285 update_flags [0 ]= (fire_frequcy <<16 )| fire_version ;
12881286 EEPROM_program (EEPROM_USER_Firmware_FLAGS ,update_flags ,1 );//store hardversion
12891287 FLASH_erase (0x8018F80 );//page 799
1288+ FLASH_program_on_addr (0x8018F80 ,0x12 );
12901289 FLASH_erase (FLASH_USER_START_ADDR_CONFIG );
12911290 NVIC_SystemReset ();
12921291 }
You can’t perform that action at this time.
0 commit comments