You've already forked fm-dx-webserver
mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-02-26 14:11:59 +01:00
reset ps_errors api on frequency change
This commit is contained in:
committed by
GitHub
parent
71c90119af
commit
fbcdda2941
@@ -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