From 557aa526d1ee8070d29159627cd8be1f29ccf579 Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Sat, 3 Jun 2017 19:18:03 +0200 Subject: [PATCH] Added callback function to first reload function --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index c406fe6..62da6b0 100644 --- a/server.js +++ b/server.js @@ -72,5 +72,5 @@ var server = app.listen(3000, function () { pythonOptions: ['-u'], args: 'reload' }; - PythonShell.run('scripts/fanController.py', options); + PythonShell.run('scripts/fanController.py', options, function (err, results) {}); })