From 9831facfc753fd040fa2b3d1b40ed634c2fca507 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Sat, 12 Dec 2020 14:32:03 -0800 Subject: [PATCH] fix opcode decode --- firmware/bootloader/bootloader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/bootloader/bootloader.cpp b/firmware/bootloader/bootloader.cpp index fa90dee..0855e82 100644 --- a/firmware/bootloader/bootloader.cpp +++ b/firmware/bootloader/bootloader.cpp @@ -128,7 +128,7 @@ void RunBootloaderLoop() continue; } - uint8_t opcode = (frame.EID >> 16) & 0xFF; + uint8_t opcode = (frame.EID >> 16) & 0x0F; uint16_t embeddedData = frame.EID & 0xFFFF; switch (opcode) {