From 9bb8797b6023785e4f2f028cda251c5e6a6f41f1 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Tue, 29 Mar 2022 20:55:23 +0200 Subject: [PATCH] update_eeprom: Read correctly both old/new address prefix sizes Be less strict in the address size. Support both the legacy 2 and the new 3 byte address in the output. --- tools/update_eeprom | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/update_eeprom b/tools/update_eeprom index a72f9d714..321b65b14 100755 --- a/tools/update_eeprom +++ b/tools/update_eeprom @@ -29,7 +29,7 @@ trap "rm -f \"$instr\"" EXIT convert() { - sed -ne 's/^\([0-9a-f]\{4\}\) \([0-9a-f ]*\)$/D3 Ax\1 C16 X\2/p' "$@" + sed -ne 's/^\([0-9a-f]\{4,6\}\) \([0-9a-f ]*\)$/D3 Ax\1 C16 X\2/p' "$@" } if [ -z "$new" ]; then