Skip to content

Commit 9bb8797

Browse files
committed
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.
1 parent b353274 commit 9bb8797

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/update_eeprom

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ trap "rm -f \"$instr\"" EXIT
2929

3030
convert()
3131
{
32-
sed -ne 's/^\([0-9a-f]\{4\}\) \([0-9a-f ]*\)$/D3 Ax\1 C16 X\2/p' "$@"
32+
sed -ne 's/^\([0-9a-f]\{4,6\}\) \([0-9a-f ]*\)$/D3 Ax\1 C16 X\2/p' "$@"
3333
}
3434

3535
if [ -z "$new" ]; then

0 commit comments

Comments
 (0)