Currently the SPI and I2C modules assume the buses are numbered according to the subsystem numbering, but the kernel actually numbers them incrementally in the order they're enabled.
PyBBIO should instead look at what buses are available right before and right after enabling and use the new one.
Currently the SPI and I2C modules assume the buses are numbered according to the subsystem numbering, but the kernel actually numbers them incrementally in the order they're enabled.
PyBBIO should instead look at what buses are available right before and right after enabling and use the new one.