You've already forked fm-dx-webserver
mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-02-27 14:33:52 +01:00
TX search sp.E mode: tidy up
Remove unrequired lines from sp.E mode switch code.
This commit is contained in:
@@ -57,8 +57,6 @@ function processData(data, piCode, rdsPs) {
|
|||||||
let weightDistance = distance.distanceKm
|
let weightDistance = distance.distanceKm
|
||||||
if (esMode && distance.distanceKm > 200) {
|
if (esMode && distance.distanceKm > 200) {
|
||||||
weightDistance = Math.abs(distance.distanceKm-1500);
|
weightDistance = Math.abs(distance.distanceKm-1500);
|
||||||
} else {
|
|
||||||
weightDistance = distance.distanceKm;
|
|
||||||
}
|
}
|
||||||
const score = (10*Math.log10(station.erp*1000)) / weightDistance; // Calculate score
|
const score = (10*Math.log10(station.erp*1000)) / weightDistance; // Calculate score
|
||||||
if (score > maxScore) {
|
if (score > maxScore) {
|
||||||
|
|||||||
Reference in New Issue
Block a user