Skip to content

Commit 946801c

Browse files
author
Virtual Steering Dev
committed
fix: declare lastAngleDeg as module-level let (fixes TS2304 build error)
1 parent 9bd88c8 commit 946801c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/controller/main.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const sensor = new PhoneSensor({ rangeDeg: 25, deadzoneDeg: 2, sensitivity: 1 })
2020
let network: NetworkManager | null = null;
2121
let connected = false;
2222
let lastSteering = 0;
23-
// const _lastAngleDeg = 0;
23+
let lastAngleDeg = 0; // eslint-disable-line @typescript-eslint/no-unused-vars
2424
let lastSend = 0;
2525
const SEND_INTERVAL = 33; // ~30 Hz
2626
const packet = { type: 'phone_steering', payload: { s: 0, t: 0 } };

0 commit comments

Comments
 (0)