Skip to content

Commit 34d31bd

Browse files
authored
Bug fix/lorawan sx127x get status type (#173)
* Update LoRaRadio.h - radio_settings.state type * Update SX1272_LoRaRadio.cpp - fix get_status() return type * Update SX1276_LoRaRadio.cpp - fix get_status() return type
1 parent 946a1b5 commit 34d31bd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

connectivity/drivers/lora/COMPONENT_SX1272/SX1272_LoRaRadio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ void SX1272_LoRaRadio::set_channel(uint32_t freq)
297297
/**
298298
* Returns current status of the radio state machine
299299
*/
300-
uint8_t SX1272_LoRaRadio::get_status(void)
300+
radio_state_t SX1272_LoRaRadio::get_status(void)
301301
{
302302
return _rf_settings.state;
303303
}

connectivity/drivers/lora/COMPONENT_SX1276/SX1276_LoRaRadio.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ bool SX1276_LoRaRadio::check_rf_frequency(uint32_t frequency)
309309
/**
310310
* Returns current status of the radio state machine
311311
*/
312-
uint8_t SX1276_LoRaRadio::get_status(void)
312+
radio_state_t SX1276_LoRaRadio::get_status(void)
313313
{
314314
return _rf_settings.state;
315315
}
@@ -2291,4 +2291,4 @@ void SX1276_LoRaRadio::handle_timeout_irq()
22912291

22922292
#endif // DEVICE_SPI
22932293

2294-
// EOF
2294+
// EOF

connectivity/lorawan/include/lorawan/LoRaRadio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ typedef struct radio_settings {
349349
/**
350350
* Current state of the radio, such as RF_IDLE.
351351
*/
352-
uint8_t state;
352+
radio_state_t state;
353353

354354
/**
355355
* Current modem operation, such as MODEM_LORA.

0 commit comments

Comments
 (0)