From 8dc58d60c42ae4382143499d6fd0dd483ba0c5f6 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Wed, 12 Feb 2025 20:38:32 +1300 Subject: [PATCH] ask for tx power --- index.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 14e5603..e32dfa7 100644 --- a/index.html +++ b/index.html @@ -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;