diff --git a/sdk/commands/config.ts b/sdk/commands/config.ts index 6897a56..231b54d 100644 --- a/sdk/commands/config.ts +++ b/sdk/commands/config.ts @@ -1,7 +1,7 @@ -import { StructBuffer, bits, uint16_t, uint8_t } from "@nmann/struct-buffer"; +import { StructBuffer, bits, uint8_t, uint16_t } from "@nmann/struct-buffer"; import { EnabledSensors } from "./enabled-sensors.ts"; -type Decoded = ReturnType; +export type Decoded = ReturnType; /** * Each FSR panel has 4 sensors. Make read/write easier by diff --git a/sdk/commands/sensor_test.ts b/sdk/commands/sensor_test.ts index 07d55a3..8f9dd81 100644 --- a/sdk/commands/sensor_test.ts +++ b/sdk/commands/sensor_test.ts @@ -1,6 +1,6 @@ import { StructBuffer, bitFields, bits, bool, int16_t, uint8_t, uint16_t } from "@nmann/struct-buffer"; import { API_COMMAND, char2byte } from "../api"; -import type { DecodedStruct } from "./config"; +import type { Decoded } from "./config"; import type { EachPanel, EachSensor } from "./inputs"; /** @@ -97,7 +97,7 @@ class SMXPanelTestData { left: false, }; - constructor(data: DecodedStruct) { + constructor(data: Decoded) { /** * Check the header. this is always `false true false` to identify it as a response, * and not as random steps from the player.