1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-27 06:23:53 +01:00

ui changes + map preparation + bugfixes

This commit is contained in:
NoobishSVK
2024-02-08 16:48:55 +01:00
parent 8ad8015ae7
commit 0453cdc75a
8 changed files with 231 additions and 94 deletions

View File

@@ -22,9 +22,9 @@ const fetchInterval = 3000;
// Fetch data from maps
function fetchTx(freq, piCode, rdsPs) {
const now = Date.now();
freq = parseFloat(freq);
// Check if it's been at least 3 seconds since the last fetch and if the QTH is correct
if (now - lastFetchTime < fetchInterval || serverConfig.identification.lat.length < 2) {
if (now - lastFetchTime < fetchInterval || serverConfig.identification.lat.length < 2 || freq < 87) {
return Promise.resolve();
}