From b0ca144747457fe5ffa8cd8c831ba691578c81c9 Mon Sep 17 00:00:00 2001 From: William Vinnicombe Date: Fri, 15 May 2026 16:40:16 +0100 Subject: [PATCH] Only print 16-bit ECC value You can still output the full value by passing `--raw` --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 337d9cb..e16ccf9 100644 --- a/main.cpp +++ b/main.cpp @@ -7828,7 +7828,7 @@ bool otp_get_command::execute(device_map &devices) { } if (do_ecc) { corrected_val = otp_calculate_ecc(raw_value &0xffff); - snprintf(buf, sizeof(buf), "\nVALUE 0x%06x\n", corrected_val); + snprintf(buf, sizeof(buf), "\nVALUE 0x%04x\n", corrected_val &0xffff); fos << buf; // todo more clarity over ECC settings // todo recovery