diff --git a/src/lib/serial/device.ts b/src/lib/serial/device.ts index c73f8b02..6a83ef23 100644 --- a/src/lib/serial/device.ts +++ b/src/lib/serial/device.ts @@ -290,7 +290,7 @@ export class CharaDevice { * To permanently store the settings, you *must* call commit. */ async setSetting(id: number, value: number) { - const [status] = await this.send(`VAR B2 ${id} ${value}`) + const [status] = await this.send(`VAR B2 ${id.toString(16).toUpperCase()} ${value}`) if (status !== "0") throw new Error(`Failed with status ${status}`) } @@ -298,8 +298,9 @@ export class CharaDevice { * Retrieves a setting from the device */ async getSetting(id: number): Promise { - const [value, status] = await this.send(`VAR B1 ${id}`) - if (status !== "0") throw new Error(`Setting "${id}" doesn't exist (Status code ${status})`) + const [value, status] = await this.send(`VAR B1 ${id.toString(16).toUpperCase()}`) + if (status !== "0") + throw new Error(`Setting "0x${id.toString(16)}" doesn't exist (Status code ${status})`) return Number(value) } diff --git a/src/routes/config/settings/+page.svelte b/src/routes/config/settings/+page.svelte index 30dc4f1c..0ae7e02e 100644 --- a/src/routes/config/settings/+page.svelte +++ b/src/routes/config/settings/+page.svelte @@ -7,7 +7,7 @@ {#if $serialPort}
- +

"Chording only" mode which tells your device to output chords on a press rather than a press & release. It also enables you to jump from one chord to another without releasing everything and can be @@ -23,13 +23,19 @@

- +

A quick, single key press and release used to indicate a suffix, prefix, or modifier to be associated with a chord. @@ -54,7 +60,8 @@

@@ -78,74 +85,75 @@
Character Entry {#if $serialPort.device === "LITE"} - + {/if} Hz ms Key Debounce Releasems
- + - +
- + - +
Device - - + +
{#if $serialPort.device === "LITE"}