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
pull/15494/head
timIdeaTech 2023-07-23 14:55:41 -06:00 committed by GitHub
parent 946a1b57cb
commit 34d31bd033
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -297,7 +297,7 @@ void SX1272_LoRaRadio::set_channel(uint32_t freq)
/**
* Returns current status of the radio state machine
*/
uint8_t SX1272_LoRaRadio::get_status(void)
radio_state_t SX1272_LoRaRadio::get_status(void)
{
return _rf_settings.state;
}

View File

@ -309,7 +309,7 @@ bool SX1276_LoRaRadio::check_rf_frequency(uint32_t frequency)
/**
* Returns current status of the radio state machine
*/
uint8_t SX1276_LoRaRadio::get_status(void)
radio_state_t SX1276_LoRaRadio::get_status(void)
{
return _rf_settings.state;
}
@ -2291,4 +2291,4 @@ void SX1276_LoRaRadio::handle_timeout_irq()
#endif // DEVICE_SPI
// EOF
// EOF

View File

@ -349,7 +349,7 @@ typedef struct radio_settings {
/**
* Current state of the radio, such as RF_IDLE.
*/
uint8_t state;
radio_state_t state;
/**
* Current modem operation, such as MODEM_LORA.