mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-31 17:29:19 +02:00
oops
This commit is contained in:
@@ -352,6 +352,7 @@ function handleWebSocketMessage(event) {
|
|||||||
const sum = signalData.reduce((acc, strNum) => acc + parseFloat(strNum), 0);
|
const sum = signalData.reduce((acc, strNum) => acc + parseFloat(strNum), 0);
|
||||||
data.push(sum / signalData.length);
|
data.push(sum / signalData.length);
|
||||||
}
|
}
|
||||||
|
socket.onmessage = handleWebSocketMessage;
|
||||||
|
|
||||||
const signalBuffer = [];
|
const signalBuffer = [];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user