Skip to content

Commit 85c9c25

Browse files
author
Guillaume Revaillot
committed
stm32device: fix trace, add mask on byte value
1 parent 9070291 commit 85c9c25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/stm32flash/STM32Device.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ private boolean readAck(int timeout) throws IOException, TimeoutException {
540540
return false;
541541

542542
default:
543-
System.err.println("readAck: err, got unexpected 0x" + Integer.toHexString(b));
543+
System.err.println("readAck: err, got unexpected 0x" + Integer.toHexString(b & 0xff));
544544
return false;
545545
}
546546
}

0 commit comments

Comments
 (0)