From 356d1a3f5b00766396a8c24c48b524ad5d2c892b Mon Sep 17 00:00:00 2001 From: vitrinekast Date: Mon, 12 Feb 2024 17:44:24 +0100 Subject: [PATCH] added reset message --- app.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app.js b/app.js index 47360af..a3f0e55 100644 --- a/app.js +++ b/app.js @@ -78,6 +78,12 @@ const parseMessage = (message) => { case 'init': toPlotter(init()); break; + case 'reset': + distance = 3; + toPlotter(init()); + toPlotter(to(0,0)); + toPlotter(init()); + break; case 'pu': toPlotter(`PU;`); break;