Permalink
Browse files

undid bad pull with oversampling mistake

  • Loading branch information...
1 parent 2678aa0 commit f9119a841f18b8348aefb32d9484102fcb043964 @ladyada ladyada committed Feb 28, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 Adafruit_BMP085.cpp
View
@@ -84,11 +84,17 @@ uint32_t Adafruit_BMP085::readRawPressure(void) {
raw = read16(BMP085_PRESSUREDATA);
+ raw <<= 8;
+ raw |= read8(BMP085_PRESSUREDATA+2);
+ raw >>= (8 - oversampling);
+
+ /* this pull broke stuff, look at it later?
if (oversampling==0) {
raw <<= 8;
raw |= read8(BMP085_PRESSUREDATA+2);
raw >>= (8 - oversampling);
}
+ */
#if BMP085_DEBUG == 1
Serial.print("Raw pressure: "); Serial.println(raw);

0 comments on commit f9119a8

Please sign in to comment.