fix saving settings on rak via ble, we can't send too many packets to radio at once

This commit is contained in:
liamcottle
2025-02-14 12:39:17 +13:00
parent e782611022
commit 05e7a9c659
4 changed files with 30 additions and 11 deletions

View File

@@ -150,12 +150,15 @@ class Connection {
}
static async setAdvertName(name) {
await GlobalState.connection.sendCommandSetAdvertName(name);
await GlobalState.connection.setAdvertName(name);
}
static async setRadioParams(radioFreq, radioBw, radioSf, radioCr, txPower) {
await GlobalState.connection.sendCommandSetTxPower(txPower);
await GlobalState.connection.sendCommandSetRadioParams(radioFreq, radioBw, radioSf, radioCr);
static async setTxPower(txPower) {
await GlobalState.connection.setTxPower(txPower);
}
static async setRadioParams(radioFreq, radioBw, radioSf, radioCr) {
await GlobalState.connection.setRadioParams(radioFreq, radioBw, radioSf, radioCr);
}
static async syncDeviceTime() {