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;