ask for tx power

This commit is contained in:
liamcottle 2025-02-12 20:38:32 +13:00
parent 32472fc842
commit 8dc58d60c4

View file

@ -231,8 +231,17 @@
await this.connection.sendCommandSetDeviceTime(timestamp);
},
async sendCommandSetTxPower() {
const txPower = 22;
// ask user for tx power
const txPowerString = prompt("Please enter TX power in dBm");
if(!txPowerString){
return;
}
// update tx power
const txPower = parseInt(txPowerString);
await this.connection.sendCommandSetTxPower(txPower);
},
async sendCommandSetRadioParams() {
const radioFreq = 917375;