mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-30 08:49:16 +02:00
reset ps_errors api on frequency change
This commit is contained in:
@@ -466,7 +466,13 @@ function showOnlineUsers(currentUsers) {
|
||||
initialData.users = currentUsers;
|
||||
}
|
||||
|
||||
let prevFreq = initialData.freq || '87.500';
|
||||
function processSignal(receivedData, st, stForced) {
|
||||
if (initialData.freq !== prevFreq) {
|
||||
prevFreq = initialData.freq;
|
||||
dataToSend.ps_errors = '';
|
||||
}
|
||||
|
||||
const modifiedData = receivedData.substring(2);
|
||||
const parsedValue = parseFloat(modifiedData);
|
||||
dataToSend.st = st;
|
||||
|
||||
Reference in New Issue
Block a user