[SX126x] Added getMod implementation

pull/1115/head
jgromes 2024-05-26 16:32:51 +02:00
rodzic c3e99c8698
commit 852d336c50
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -1717,6 +1717,10 @@ int16_t SX126x::setDio2AsRfSwitch(bool enable) {
return(this->mod->SPIwriteStream(RADIOLIB_SX126X_CMD_SET_DIO2_AS_RF_SWITCH_CTRL, &data, 1));
}
Module* SX126x::getMod() {
return(this->mod);
}
int16_t SX126x::setFs() {
return(this->mod->SPIwriteStream(RADIOLIB_SX126X_CMD_SET_FS, NULL, 0));
}