git.asbjorn.biz
/
rapper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix CRC cast compiler warning
[rapper.git]
/
tools
/
lpcrc
/
lpcrc.sh
diff --git
a/tools/lpcrc/lpcrc.sh
b/tools/lpcrc/lpcrc.sh
index
ee36dd5
..
1bff216
100755
(executable)
--- a/
tools/lpcrc/lpcrc.sh
+++ b/
tools/lpcrc/lpcrc.sh
@@
-11,7
+11,7
@@
echo "$crcoutput" | grep -q differs
if [ $? -eq 0 ] ; then
crc=$(echo "$crcoutput" | grep new_crc | cut -d' ' -f2)
sed -i -e \
- 's/^\(\s\+0x\)[a-f0-9]\{8\}\(,\s\+\/\/\ Interrupt CRC\)/\1'$crc'\2/g' \
+ 's/^\(#define CRC_CHECKSUM 0x\)[a-f0-9]\{8\}$/\1'$crc'/g' \
$source
make crc
fi