Skip to content

Commit e525779

Browse files
committed
EEPROM read/write logging
1 parent d05cfa0 commit e525779

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/gpx/gpx.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,6 +1076,8 @@ int is_ready(Gpx *gpx)
10761076

10771077
int read_eeprom(Gpx *gpx, unsigned address, unsigned length)
10781078
{
1079+
SHOW( fprintf(gpx->log, "Reading EEPROM address %u length %u\n", address, length) );
1080+
10791081
begin_frame(gpx);
10801082

10811083
write_8(gpx, 12);
@@ -1093,6 +1095,8 @@ int read_eeprom(Gpx *gpx, unsigned address, unsigned length)
10931095

10941096
int write_eeprom(Gpx *gpx, unsigned address, char *data, unsigned length)
10951097
{
1098+
SHOW( fprintf(gpx->log, "Writing EEPROM address %u length %u\n", address, length) );
1099+
10961100
begin_frame(gpx);
10971101

10981102
write_8(gpx, 13);

0 commit comments

Comments
 (0)