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 48
48
// Definitions
49
49
#define CHANNELS_MASK_SIZE 1
50
50
51
- extern uint8_t joinrx2_dr ;
52
51
extern LoRaMacParams_t LoRaMacParams ;
53
52
extern uint8_t payloadlens ;
54
53
extern bool DR_small ;
@@ -296,14 +295,7 @@ PhyParam_t RegionEU868GetPhyParam( GetPhyParams_t* getPhy )
296
295
}
297
296
case PHY_DEF_RX2_DR :
298
297
{
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 ;
307
299
break ;
308
300
}
309
301
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
72
72
#define TEST_VERSION (uint32_t) 0x00000000 /*1 lsb is always 0 in releases */
73
73
#define LRWAN_VERSION (uint32_t) 0x00001140 /*3 next hex is i_cube release*/
74
74
#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 "
76
76
#define AT_LoRaWan_VERSION_STRING "DR-LWS-005"
77
77
78
78
/* Exported types ------------------------------------------------------------*/
Original file line number Diff line number Diff line change @@ -83,7 +83,6 @@ uint16_t fire_version=0;
83
83
uint16_t fire_frequcy = 0 ;
84
84
uint8_t mode ;
85
85
uint8_t inmode ;
86
- uint8_t joinrx2_dr ;
87
86
bool rx2_flags = 0 ;
88
87
bool fdr_flags = 0 ;
89
88
@@ -1170,8 +1169,7 @@ void Read_Config(void)
1170
1169
if ((rx2_flags == 0 )|| (lora_config .otaa == LORA_DISABLE ))
1171
1170
{
1172
1171
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 ];
1175
1173
LoRaMacMibSetRequestConfirm ( & mib );
1176
1174
}
1177
1175
else if (rx2_flags == 1 )
@@ -1287,6 +1285,7 @@ void new_firmware_update(void)
1287
1285
update_flags [0 ]= (fire_frequcy <<16 )| fire_version ;
1288
1286
EEPROM_program (EEPROM_USER_Firmware_FLAGS ,update_flags ,1 );//store hardversion
1289
1287
FLASH_erase (0x8018F80 );//page 799
1288
+ FLASH_program_on_addr (0x8018F80 ,0x12 );
1290
1289
FLASH_erase (FLASH_USER_START_ADDR_CONFIG );
1291
1290
NVIC_SystemReset ();
1292
1291
}
You can’t perform that action at this time.
0 commit comments