aboutsummaryrefslogtreecommitdiff
path: root/src/lib/razercommon.c
diff options
context:
space:
mode:
authorWrathofthePast <[email protected]>2022-02-26 16:25:53 -0500
committerGitHub <[email protected]>2022-02-26 16:25:53 -0500
commit03d09ece2b5b74e6d8bbffaaaafc231c6a708fb7 (patch)
treead37a62f0757d28f283e70ede36803806e39bd9d /src/lib/razercommon.c
parentf3208c850e3122e2c862580ac8cb2d4ea8c3bbb5 (diff)
parent9404d4475fff9656c6a4307c642507817b8eb485 (diff)
downloadlibrazermacos-03d09ece2b5b74e6d8bbffaaaafc231c6a708fb7.tar.xz
librazermacos-03d09ece2b5b74e6d8bbffaaaafc231c6a708fb7.zip
Merge branch '1kc:master' into master
Diffstat (limited to 'src/lib/razercommon.c')
-rw-r--r--src/lib/razercommon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/razercommon.c b/src/lib/razercommon.c
index 4c8424a..c888445 100644
--- a/src/lib/razercommon.c
+++ b/src/lib/razercommon.c
@@ -121,7 +121,8 @@ struct razer_report get_empty_razer_report(void) {
* The checksum is generated by XORing all the bytes in the report starting
* at byte number 2 (0 based) and ending at byte 88.
*/
-unsigned char razer_calculate_crc(struct razer_report *report) {
+unsigned char razer_calculate_crc(struct razer_report *report)
+{
/*second to last byte of report is a simple checksum*/
/*just xor all bytes up with overflow and you are done*/
unsigned char crc = 0;