Skip to content

Commit f5022d8

Browse files
committed
fixup! touchscreen: Print protocol version
1 parent 3fb8078 commit f5022d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

framework_lib/src/touchscreen.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ fn check_fw_version(device: &HidDevice) -> Result<(), HidError> {
3737
let ver = res
3838
.iter()
3939
.skip(1)
40-
.fold(format!("{:02X}", res[0]), |acc, &x| acc + "." + &format!("{:02X}", x));
40+
.fold(format!("{:02X}", res[0]), |acc, &x| {
41+
acc + "." + &format!("{:02X}", x)
42+
});
4143
// Expecting 06.00.0A
4244
debug!(" Protocol Version: v{}", ver);
4345

0 commit comments

Comments
 (0)