@@ -153,10 +153,10 @@ short berechneLRC(unsigned char* buffer, unsigned char size) {
hByte = lrc >> 0x04;
lByte = lrc & 0x0F;
- if(hByte > 10) hByte += 0x37;
+ if(hByte >= 10) hByte += 0x37;
else hByte += 0x30;
- if(lByte > 10) lByte += 0x37;
+ if(lByte >= 10) lByte += 0x37;
else lByte += 0x30;
return (hByte << 8) | lByte;