Closed GraysonBellamy closed 5 months ago
See if this will work for BCC calc. Slightly short and easier to understand.
bcc = 0 for cmd in command[1:]: bcc ^= ord(cmd) # Take the XOR of all the bytes in the command
Shorter code and easier to understand
Implemented
🚀 Feature Request
See if this will work for BCC calc. Slightly short and easier to understand.
🔈 Motivation
Shorter code and easier to understand
🛰 Alternatives
📎 Additional context