summaryrefslogtreecommitdiff
path: root/apps/plugins/alpine_cdc.c
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-08 21:21:02 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-08 21:21:02 +0000
commit9befc2e747e4f6cd2687bf267097cc7a8fd4c601 (patch)
tree2d07a57f52a9995a5f8dfb196efff84acc8720d8 /apps/plugins/alpine_cdc.c
parent67f215032d8bab2571aad2da739d72512c064ca4 (diff)
downloadrockbox-9befc2e747e4f6cd2687bf267097cc7a8fd4c601.tar.gz
rockbox-9befc2e747e4f6cd2687bf267097cc7a8fd4c601.zip
Remove tabs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29842 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/alpine_cdc.c')
-rw-r--r--apps/plugins/alpine_cdc.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/plugins/alpine_cdc.c b/apps/plugins/alpine_cdc.c
index 3290d5e851..bf8bfeaae1 100644
--- a/apps/plugins/alpine_cdc.c
+++ b/apps/plugins/alpine_cdc.c
@@ -490,16 +490,16 @@ void receive_timeout_isr(void)
490/* generate the checksum */ 490/* generate the checksum */
491unsigned char calc_checksum(unsigned char* p_msg, int digits) 491unsigned char calc_checksum(unsigned char* p_msg, int digits)
492{ 492{
493 int chk = 0; 493 int chk = 0;
494 int i; 494 int i;
495 495
496 for (i=0; i<digits; i++) 496 for (i=0; i<digits; i++)
497 { 497 {
498 chk ^= p_msg[i]; 498 chk ^= p_msg[i];
499 } 499 }
500 chk = (chk+1) % 16; 500 chk = (chk+1) % 16;
501 501
502 return chk; 502 return chk;
503} 503}
504 504
505 505