Skip to content

"sudo daqhats_read_eeproms" fails with missing i2c-adapter folder #76

@adb-be

Description

@adb-be

The script defines SYS=/sys/class/i2c-adapter/i2c-$BUS
which doesn't exist on my pi3B (Linux version 6.12.22-v8+)
Because of that a second board will fail to be detected. (I'm using an MCC128 and MCC118)

So, as fix I am currently using a small patch to the script:
SYS=/sys/class/i2c-adapter/i2c-$BUS
if [ ! -d "$SYS" ]; then
SYS=/sys/class/i2c-dev/i2c-$BUS/device
fi

Then daqhats_read_eeproms succeeds and the boards can be found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions