skylarstein / bme280-sensor

A Node.js I2C module for the Bosch BME280 Humidity, Barometric Pressure, and Temperature Sensor
MIT License
36 stars 22 forks source link

Fix error variable typo #1

Closed rxseger closed 7 years ago

rxseger commented 7 years ago

Fixes error in promise rejection, before fix:

pi@raspberrypi:~/spi/bme280-sensor $ node example.js (node:30742) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): ReferenceError: errr is not defined

after:

pi@raspberrypi:~/spi/bme280-sensor $ node example.js BME280 initialization failed: Error: EIO, Input/output error

skylarstein commented 7 years ago

Thank you for the fix!