diff --git a/src/pages/terminal/Terminal.tsx b/src/pages/terminal/Terminal.tsx index 65e1342..853b51d 100644 --- a/src/pages/terminal/Terminal.tsx +++ b/src/pages/terminal/Terminal.tsx @@ -14,6 +14,7 @@ import { faArrowsRotate, faCodeBranch, faLockOpen, + faPowerOff, faQuestion, faSquarePollHorizontal } from "@fortawesome/free-solid-svg-icons"; @@ -135,6 +136,10 @@ const Terminal = () => { xtermRef.current?.terminal.focus(); }; + const onReset = () => { + controllerService.serialPort.write(Buffer.from([0x18])); + }; + const onUnlock = () => { controllerService?.send(new Command("$X")); }; @@ -160,20 +165,32 @@ const Terminal = () => {
+