Skip to content

Commit a2b8647

Browse files
committed
eeptools: Fix the usage information
The -a/--address parameter does not cope with being given an address with an '0x' prefix, so don't provide examples that include one. Signed-off-by: Phil Elwell <[email protected]>
1 parent a779e6d commit a2b8647

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

eeptools/eepflash.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ usage()
2424
echo " -f=file_name --file=file_name: binary .eep file to read to/from"
2525
echo " N.B. -f file_name and --file file_name (without =) also accepted"
2626
echo " -d= --device= i2c bus number (ex if the eeprom is on i2c-0 set -d=0)"
27-
echo ' -a= --address= i2c EEPROM address (0x50 for standard HAT+/HAT, 0x51'
28-
echo " for stackable HAT+, 0x52 for MODE0 Power HAT+, 0x53 for MODE1"
29-
echo ' Power HAT+)'
27+
echo ' -a= --address= i2c EEPROM address (50 for standard HAT+/HAT, 51 for'
28+
echo " stackable HAT+, 52 for MODE0 Power HAT+, 53 for MODE1 Power"
29+
echo ' HAT+)'
3030
echo " -t=eeprom_type --type=eeprom_type: EEPROM type to use"
3131
echo " The following EEPROM types are supported:"
3232
echo " 24c32"
@@ -37,8 +37,8 @@ usage()
3737
echo " 24c1024"
3838
echo ""
3939
echo "Example:"
40-
echo "$me -w -f=crex0.1.eep -t=24c32 -d=1 -a=57"
41-
echo "$me -r -f dump.eep -t=24c32 -d=1 -a=57"
40+
echo "$me -w -f=crex0.1.eep -t=24c32 -d=1 -a=50"
41+
echo "$me -r -f dump.eep -t=24c32 -d=1 -a=50"
4242
echo ""
4343
}
4444

0 commit comments

Comments
 (0)