From 185bf25b5700e1aa2d532f8204938e1d2c4d5415 Mon Sep 17 00:00:00 2001 From: Attila Farago Date: Fri, 15 Nov 2024 14:27:24 +0100 Subject: [PATCH] refactor(protocol): remove unused slot handling in createLegacyStartUserProgramCommand --- src/ble-pybricks-service/protocol.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/ble-pybricks-service/protocol.ts b/src/ble-pybricks-service/protocol.ts index 7bdb87a0..74e78cbb 100644 --- a/src/ble-pybricks-service/protocol.ts +++ b/src/ble-pybricks-service/protocol.ts @@ -134,9 +134,6 @@ export function createStartUserProgramCommand( export function createLegacyStartUserProgramCommand(): Uint8Array { const msg = new Uint8Array(1); msg[0] = CommandType.StartUserProgram; - if (slot !== undefined) { - msg[1] = slot & 0xff; - } return msg; }