adafruit / Adafruit_BMP085_Unified

Unified sensor driver for Adafruit's BMP085 & BMP180 breakouts
93 stars 60 forks source link

kPa to hPa? #2

Closed yehnan closed 10 years ago

yehnan commented 10 years ago

In void Adafruit_BMP085::getEvent(sensors_event_t _event) { float pressure_kPa; // ...omit... getPressure(&pressure_kPa); event->pressure = pressurekPa / 100.0F; / kPa to hPa */ }

the comment is not describing the code. comment: kPa to hPa code: divide by 100, but kPa to hPa should be to divide by 10.

ladyada commented 10 years ago

we already fixed this, thanks!