Enable/disable ADR

This commit is contained in:
Manuel Bl
2020-07-31 17:48:11 +02:00
parent 513ac44268
commit b73ed23a97
2 changed files with 28 additions and 1 deletions

View File

@ -265,6 +265,16 @@ void TheThingsNetwork::setRSSICal(int8_t rssiCal)
ttn_hal.rssiCal = rssiCal;
}
bool TheThingsNetwork::adrEnabled()
{
return LMIC.adrEnabled != 0;
}
void TheThingsNetwork::setAdrEnabled(bool enabled)
{
LMIC_setAdrMode(enabled);
}
// --- Callbacks ---