Преглед на файлове

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.
Yuri D'Elia преди 2 години
родител
ревизия
9bb8797b60
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      tools/update_eeprom

+ 1 - 1
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