projects
/
fw
/
altos
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
altos: Put SPI in slower mode when talking to companion board
[fw/altos]
/
src
/
gps-cksum
1
#!/usr/bin/env nickle
2
3
int checksum(string a)
4
{
5
int c = 0;
6
for (int i = 0; i < String::length(a); i++)
7
c ^= a[i];
8
return c;
9
}
10
11
void main()
12
{
13
for (int i = 1; i < dim(argv); i++)
14
printf ("$%s*%02x\n", argv[i], checksum(argv[i]));
15
}
16
17
main();