1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-27 06:23:53 +01:00
This commit is contained in:
NoobishSVK
2024-04-22 21:44:39 +02:00
parent ea2914f3e5
commit 1775da67cc
5 changed files with 12 additions and 10 deletions

View File

@@ -86,7 +86,7 @@ function connectToSerial() {
serialport.write('F-1\n');
serialport.write('W0\n');
serialport.write('D0\n');
serialport.write('G11\n');
serialport.write('G00\n');
serverConfig.audio.startupVolume ? serialport.write('Y' + (serverConfig.audio.startupVolume * 100).toFixed(0) + '\n') : serialport.write('Y100\n');
serialport.on('data', (data) => {
@@ -277,7 +277,7 @@ wss.on('connection', (ws, request) => {
return;
}
if (command.includes("'")) {
if (command.includes("\'")) {
return;
}
@@ -448,4 +448,4 @@ httpServer.listen(serverConfig.webserver.webserverPort, serverConfig.webserver.w
}
});
fmdxList.update();
fmdxList.update();