mirror of https://github.com/ARMmbed/mbed-os.git
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 typepull/15494/head
parent
946a1b57cb
commit
34d31bd033
|
@ -297,7 +297,7 @@ void SX1272_LoRaRadio::set_channel(uint32_t freq)
|
||||||
/**
|
/**
|
||||||
* Returns current status of the radio state machine
|
* 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;
|
return _rf_settings.state;
|
||||||
}
|
}
|
||||||
|
|
|
@ -309,7 +309,7 @@ bool SX1276_LoRaRadio::check_rf_frequency(uint32_t frequency)
|
||||||
/**
|
/**
|
||||||
* Returns current status of the radio state machine
|
* 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;
|
return _rf_settings.state;
|
||||||
}
|
}
|
||||||
|
|
|
@ -349,7 +349,7 @@ typedef struct radio_settings {
|
||||||
/**
|
/**
|
||||||
* Current state of the radio, such as RF_IDLE.
|
* Current state of the radio, such as RF_IDLE.
|
||||||
*/
|
*/
|
||||||
uint8_t state;
|
radio_state_t state;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Current modem operation, such as MODEM_LORA.
|
* Current modem operation, such as MODEM_LORA.
|
||||||
|
|
Loading…
Reference in New Issue