Fix RX_EN handling during RX power saving
This commit is contained in:
1 parent
a1d632d16c
commit
fc660cc061
8 files changed
+106
-1
No files matched your search
@@ -1076,6 +1076,23 @@ bool MyMesh::setRxPowerSaving(bool enable, uint32_t rx_us, uint32_t sleep_us) {
|
||||
ok ? "" : " unsupported");
|
||||
return ok;
|
||||
}
|
||||
|
||||
bool MyMesh::supportsRxPowerSavingRfRxDisable() const {
|
||||
return radio_driver.supportsRxPowerSavingRfRxDisable();
|
||||
}
|
||||
|
||||
bool MyMesh::setRxPowerSavingRfRxDisabled(bool disabled) {
|
||||
bool ok = radio_driver.setRxPowerSavingRfRxDisabled(disabled);
|
||||
MESH_DEBUG_PRINTLN("RX Power Saving RF_RX control: %s, %s",
|
||||
disabled ? "disabled" : "enabled",
|
||||
ok ? "accepted" : "unsupported");
|
||||
return ok;
|
||||
}
|
||||
|
||||
bool MyMesh::isRxPowerSavingRfRxDisabled() const {
|
||||
return radio_driver.isRxPowerSavingRfRxDisabled();
|
||||
}
|
||||
|
||||
void MyMesh::getRxPsWatchdogCounts(uint32_t* soft, uint32_t* hard) {
|
||||
*soft = radio_driver.getRxPsWatchdogSoftCount();
|
||||
*hard = radio_driver.getRxPsWatchdogHardCount();
|
||||
|
||||
Reference in new issue
Block a user