Open Robotmad opened 2 months ago
Far as I can see, this can result in incomplete reads that then get interpreted as a filesystem. We should probably handle this error one level higher
I've given this a try and it does lead to incomplete file reads that are then run.
Traceback (most recent call last):
File "main.py", line 43, in
there is no indentation problem with the file.
Fix for Issue #188.
If hexpansion is unplugged during an I2C operation an OSError exception is generated which was not being trapped leading to a crash. i2c read and write operations now protected and abort the transfer, not attempting any further bytes.