Closed caternuson closed 2 years ago
For #10. Untested, but seems like an obvious issue and simple fix. maxbuff is only used locally inside the if (i2c_dev) { block, so just move it there. Otherwise an attempt will be made to access i2c_dev for SPI configurations.
maxbuff
if (i2c_dev) {
i2c_dev
For #10. Untested, but seems like an obvious issue and simple fix.
maxbuff
is only used locally inside theif (i2c_dev) {
block, so just move it there. Otherwise an attempt will be made to accessi2c_dev
for SPI configurations.