Skip to content

Commit

Permalink
Corrected typo
Browse files Browse the repository at this point in the history
Changed the BME280::press method to BME280::pres to be consistent with
the README.md
  • Loading branch information
klagr committed Feb 6, 2017
1 parent e7af7c4 commit f6db78e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/BME280.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ float BME280::temp(bool celsius){
return CalculateTemperature(rawTemp, t_fine, celsius);
}

float BME280::press(uint8_t unit){
float BME280::pres(uint8_t unit){
int32_t data[8];
int32_t t_fine;
if(!ReadData(data)){ return NAN; }
Expand Down
2 changes: 1 addition & 1 deletion src/BME280.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class BME280{
float temp(bool celsius = true);

/* ==== Read the pressure from the BME280 and return a float with the specified unit. ==== */
float press(uint8_t unit = 0x0); // unit: B000 = Pa, B001 = hPa, B010 = Hg, B011 = atm, B100 = bar, B101 = torr, B110 = N/m^2, B111 = psi
float pres(uint8_t unit = 0x0); // unit: B000 = Pa, B001 = hPa, B010 = Hg, B011 = atm, B100 = bar, B101 = torr, B110 = N/m^2, B111 = psi

/* ==== Read the humidity from the BME280 and return a percentage as a float. ==== */
float hum();
Expand Down

0 comments on commit f6db78e

Please sign in to comment.