Skip to content

Commit

Permalink
refactor(protocol): remove unused slot handling in createLegacyStartU…
Browse files Browse the repository at this point in the history
…serProgramCommand
  • Loading branch information
afarago committed Nov 15, 2024
1 parent e4441a3 commit 185bf25
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/ble-pybricks-service/protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 185bf25

Please sign in to comment.