mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-21 01:12:59 +00:00
initial commit
This commit is contained in:
11
src/lib/serial/webserial/boot.js
Normal file
11
src/lib/serial/webserial/boot.js
Normal file
@@ -0,0 +1,11 @@
|
||||
export async function bootLoader() {
|
||||
//Sends the bootloader command to the charachorder via the serial API
|
||||
await sendCommandString("BOOTLOADER")
|
||||
await readGetNone()
|
||||
}
|
||||
|
||||
export async function reboot() {
|
||||
//Sends the restart command to the charachorder via the serial API
|
||||
await sendCommandString("RESTART")
|
||||
await readGetNone()
|
||||
}
|
||||
Reference in New Issue
Block a user