Skip to content

Instantly share code, notes, and snippets.

@alepez
Created June 14, 2013 10:46
Show Gist options
  • Save alepez/5780966 to your computer and use it in GitHub Desktop.
Save alepez/5780966 to your computer and use it in GitHub Desktop.
R: hexadecimal sum modulus 256 (samsung rs232 checksum)
sprintf("%02x", (0x11+0xff+0x01+0x01) %% 256)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment