Fix CRC cast compiler warning
[rapper.git] / tools / lpcrc / lpcrc.sh
index ee36dd5..1bff216 100755 (executable)
@@ -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