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

TX search sp.E mode: tidy up

Remove unrequired lines from sp.E mode switch code.
This commit is contained in:
Adam Wisher
2024-07-14 09:59:47 +01:00
committed by GitHub
parent 70f08ec39d
commit 993456ef47

View File

@@ -57,8 +57,6 @@ function processData(data, piCode, rdsPs) {
let weightDistance = distance.distanceKm
if (esMode && distance.distanceKm > 200) {
weightDistance = Math.abs(distance.distanceKm-1500);
} else {
weightDistance = distance.distanceKm;
}
const score = (10*Math.log10(station.erp*1000)) / weightDistance; // Calculate score
if (score > maxScore) {