diff --git a/index.js b/index.js index 6c1e710..cc80703 100755 --- a/index.js +++ b/index.js @@ -160,7 +160,7 @@ app.post("/stopprojector", (req, res) => { }); function projectorNumberToText(number) { - switch (status1) { + switch (number) { case '01': return 'On'; case '02':