Эх сурвалжийг харах

BUG: a CRC of 0 was written as 100...

Klaas, Wilfried 6 жил өмнө
parent
commit
fd9193542e

+ 1 - 0
src/main/java/de/mcs/tools/IntelHex.java

@@ -83,6 +83,7 @@ public class IntelHex {
     crc = crc & 0x00FF;
     crc = crc ^ 0x00FF;
     crc++;
+    crc = crc & 0x00FF;
     writer.append(String.format("%02X", crc));
     writer.append("\r\n");
     return crc;