1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-26 22:13:53 +01:00

Also change to Math.round

This commit is contained in:
Mark de Bruijn
2024-02-11 11:56:22 +01:00
parent 3b6cf6707d
commit 30b59127b9

View File

@@ -119,7 +119,7 @@ $(document).ready(function () {
}
var newFreq = currentFreq + (delta > 0 ? -adjustment : adjustment);
socket.send("T" + (newFreq.toFixed(2) * 1000));
socket.send("T" + (Math.round(newFreq * 1000)));
return false;
});