* repeater, room server: new prefs: sf, cr, bw. "set tx ..." now instant, no reboot needed.

This commit is contained in:
Scott Powell 2025-02-28 11:48:46 +11:00
parent 50fc2100db
commit 0e2bee03b6
4 changed files with 42 additions and 27 deletions

View file

@ -168,7 +168,8 @@ void CommonCLI::handleCommand(uint32_t sender_timestamp, const char* command, ch
} else if (memcmp(config, "tx ", 3) == 0) {
_prefs->tx_power_dbm = atoi(&config[3]);
savePrefs();
strcpy(reply, "OK - reboot to apply");
_callbacks->setTxPower(_prefs->tx_power_dbm);
strcpy(reply, "OK");
} else if (sender_timestamp == 0 && memcmp(config, "freq ", 5) == 0) {
_prefs->freq = atof(&config[5]);
savePrefs();