diff --git a/src/lib/serial/device.ts b/src/lib/serial/device.ts index c3ed908d..4f2fd147 100644 --- a/src/lib/serial/device.ts +++ b/src/lib/serial/device.ts @@ -513,11 +513,11 @@ export class CharaDevice { const writer2 = this.port.writable!.getWriter(); try { - await writer2.write(new TextEncoder().encode(`RST REBOOT\r\n`)); + await writer2.write(new TextEncoder().encode(`RST RESTART\r\n`)); serialLog.update((it) => { it.push({ type: "input", - value: "RST REBOOT", + value: "RST RESTART", }); return it; }); diff --git a/src/routes/(app)/ccos/+layout.svelte b/src/routes/(app)/ccos/+layout.svelte index 29d3095b..d5d3954a 100644 --- a/src/routes/(app)/ccos/+layout.svelte +++ b/src/routes/(app)/ccos/+layout.svelte @@ -2,7 +2,7 @@ let { children } = $props(); -

Firmware Updates

+

Firmware Updates

{@render children()} diff --git a/src/routes/(app)/ccos/[device]/[version]/+page.svelte b/src/routes/(app)/ccos/[device]/[version]/+page.svelte index f2e44ff9..b64c2a4b 100644 --- a/src/routes/(app)/ccos/[device]/[version]/+page.svelte +++ b/src/routes/(app)/ccos/[device]/[version]/+page.svelte @@ -104,14 +104,16 @@ } -
+

- Update CCOS / + {data.device}{data.device} - to {data.version} + / {data.version}

{#if data.ota && !data.device.endsWith("m0")} @@ -127,8 +129,14 @@ > {#if $serialPort && isCorrectDevice}
- Your device is ready and compatible. Click the button to perform the - update. + Your + {$serialPort.company} + {$serialPort.device} + {$serialPort.chipset} + will be updated from {$serialPort.version} to + {data.version}
{:else if $serialPort && isCorrectDevice === false}
@@ -147,8 +155,6 @@ {/if} -
-

Manual Update

{/if} @@ -229,6 +235,10 @@ transition: color 200ms ease; } + h3 { + margin-block-start: 4em; + } + .primary { color: var(--md-sys-color-primary); } @@ -237,6 +247,10 @@ color: var(--md-sys-color-error); } + .container { + width: calc(min(100%, 16cm)); + } + @keyframes rotate { 0% { transform: rotate(120deg); @@ -375,6 +389,11 @@ opacity: 0.6; } + .inline-link { + display: inline; + padding: 0; + } + .correct-device { color: var(--md-sys-color-primary); opacity: 1;