[SX126x] Added missing XTAL check
This commit is contained in:
parent
5ba6f41230
commit
823c0ff82c
1 changed files with 5 additions and 0 deletions
|
@ -1379,6 +1379,11 @@ void SX126x::readBit(RADIOLIB_PIN_TYPE pin) {
|
|||
#endif
|
||||
|
||||
int16_t SX126x::setTCXO(float voltage, uint32_t delay) {
|
||||
// check if TCXO is enabled at all
|
||||
if(this->XTAL) {
|
||||
return(RADIOLIB_ERR_INVALID_TCXO_VOLTAGE);
|
||||
}
|
||||
|
||||
// set mode to standby
|
||||
standby();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue