Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not set atcai2c.bus = 1 when bus is specified #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

matsujirushi
Copy link

I want to use these scripts for Seeed reTerminal.
ATECC608A is connected a Compute Module 4 via I2C bus 3.

Specifying a bus with the -p option does not work.

$ python3 ~/cryptoauthtools/python/examples/info.py -i i2c -p bus=3
Traceback (most recent call last):
  File "/home/pi/cryptoauthtools/python/examples/info.py", line 93, in <module>
    info(args.iface, args.device, **parse_interface_params(args.params))
  File "/home/pi/cryptoauthtools/python/examples/info.py", line 45, in info
    assert atcab_init(cfg) == ATCA_SUCCESS
AssertionError

This is a pull request that disables this logic when you specify bus with the -p option.

cfg.cfg.atcai2c.bus = 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant