diff --git a/apps/machine/src/config/device.ts b/apps/machine/src/config/device.ts index cffdaa3..9a06c9a 100644 --- a/apps/machine/src/config/device.ts +++ b/apps/machine/src/config/device.ts @@ -15,7 +15,15 @@ import type { HalConfig, CassetteConfig } from '@/services/hal' /** * Supported machine models */ -export type MachineModel = 'sintra' | 'tejo' | 'douro' | 'gaia' | 'batm3' | 'custom' +export type MachineModel = + | 'sintra' + | 'tejo' + | 'douro' + | 'gaia' + | 'batm3' + | 'rpi4' + | 'rpi5' + | 'custom' /** * Full device configuration @@ -28,7 +36,10 @@ export interface DeviceConfig { /** Bill validator configuration */ validator: { /** Validator protocol type */ - type: 'id003' | 'ebds' + // 'apex' = Pyramid Apex RS-232. The driver landed with the Pi 5 work + // (packages/hal ValidatorType) but these app-side unions were never + // widened, so no machine could actually be configured to use it. + type: 'id003' | 'ebds' | 'apex' /** Serial device path(s) */ device: string | string[] } @@ -117,6 +128,52 @@ export const MACHINE_PRESETS: Record