If there is no recognized i2c-device at the expected address, the read_pressure() function currently returns an uncaught exception.
To Do:
- Add exception handling to
read_pressure() that handles an OSError exception and reports the error in the console.
If there is no recognized i2c-device at the expected address, the
read_pressure()function currently returns an uncaught exception.To Do:
read_pressure()that handles anOSErrorexception and reports the error in the console.