diff --git a/websvr.js b/websvr.js index 9a04c35..35e764f 100644 --- a/websvr.js +++ b/websvr.js @@ -58,5 +58,8 @@ app.post('/', (req, res) => { augerOn: req.body.feedRate }); } + if (req.body.quit != undefined) { + fn.commands.quit(); + } }); }); \ No newline at end of file diff --git a/www/views/index.html b/www/views/index.html index 5305473..414766c 100644 --- a/www/views/index.html +++ b/www/views/index.html @@ -13,6 +13,7 @@

+