...modified with comments by accident initially..
Fork of BMP180 by
Diff: BMP180.h
- Revision:
- 3:79d0d565c3af
- Parent:
- 1:e6c317e0f3a4
- Child:
- 4:0e92710a46f9
diff -r e6c317e0f3a4 -r 79d0d565c3af BMP180.h --- a/BMP180.h Sun Mar 08 16:14:36 2015 +0000 +++ b/BMP180.h Fri Mar 13 18:44:57 2015 +0000 @@ -106,10 +106,10 @@ private: void error(); - int readUncompensatedTemperatureValue(); - int readUncompensatedPressureValue(); - int calcTrueTemperature(int UT); - int calcTruePressure(int UP); + int32_t readUncompensatedTemperatureValue(); + int32_t readUncompensatedPressureValue(); + int32_t calcTrueTemperature(int32_t UT); + int32_t calcTruePressure(int32_t UP); void sendByteToRegister(char byte,char reg); char readByteFromRegister(char reg); void readBytesFromRegister(char reg,int numberOfBytes,char bytes[]); @@ -121,8 +121,8 @@ BusOut* leds; Calibration calibration; // variable to store calibration data // variables for calculation - int X1,X2,X3,B3,B5,B6; - unsigned int B4,B7; + int32_t X1,X2,X3,B3,B5,B6; + uint32_t B4,B7; int oss; // oversampling setting };