Skip to content

Always 'write error' and 'No such device or address' messages on all my writing attempts #6

@developersu

Description

@developersu

When I trying to write eeprom I see next error:

# cat dump1 | ./eeprog -f /dev/i2c-7 0x50 -w 0
eeprog 0.7.6, a 24Cxx EEPROM reader/writer
Copyright (c) 2003-2004 by Stefano Barbato - All rights reserved.
  Bus: /dev/i2c-7, Address: 0x50, Mode: 8bit
  Writing stdin starting at address 0x0
Error i2c_write_2b: No such device or address
Error at line 150: write error

I've fixed this by editing i2c_write_2b() from 24cXX.c file where I updated line 46 to usleep(10000); and this solved issue.

I can create a PR if you don't mind.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions