Skip to content

Commit

Permalink
bugfix: could not set vehicle threshold above 200cm
Browse files Browse the repository at this point in the history
  • Loading branch information
dkerr64 committed Jan 18, 2025
1 parent 8eee0d9 commit 32ce576
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/www/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ async function saveSettings() {
: '0';
const wifiPower = Math.max(Math.min(parseInt(document.getElementById("wifiPower").value), 20), 0);
*/
let vehicleThreshold = Math.max(Math.min(parseInt(document.getElementById("vehicleThreshold").value), 200), 5);
let vehicleThreshold = Math.max(Math.min(parseInt(document.getElementById("vehicleThreshold").value), 300), 5);
if (isNaN(vehicleThreshold)) vehicleThreshold = 0;
const laserEnabled = (document.getElementById("laserEnabled").checked) ? '1' : '0';
const laserHomeKit = (document.getElementById("laserHomeKit").checked) ? '1' : '0';
Expand Down

0 comments on commit 32ce576

Please sign in to comment.