Skip to content

Commit

Permalink
fix(ui): correct tx power validation limits
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Jan 23, 2024
1 parent ae57c72 commit ff08456
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1684,15 +1684,12 @@ export default {
const validPower = !isUndef(powerlevel)
const validMeasured = !isUndef(measured0dBm)
if (validPower && (powerlevel < -12.8 || powerlevel > 12.7)) {
return 'Power level must be between -12.8 and 12.7'
if (validPower && (powerlevel < -10 || powerlevel > 20)) {
return 'Power level must be between -10 and 20'
}
if (
validMeasured &&
(measured0dBm < -12.8 || measured0dBm > 12.7)
) {
return 'Measured 0dBm must be between -12.8 and 12.7'
if (validMeasured && (measured0dBm < -10 || measured0dBm > 10)) {
return 'Measured 0dBm must be between -10 and 10'
}
return (
Expand Down

0 comments on commit ff08456

Please sign in to comment.