Skip to content

Commit

Permalink
Fixed max, min and resolution in sensor_t
Browse files Browse the repository at this point in the history
  • Loading branch information
microbuilder committed Feb 14, 2014
1 parent f4ff9a6 commit 4bc5efc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Adafruit_ADXL345_U.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ void Adafruit_ADXL345_Unified::getSensor(sensor_t *sensor) {
sensor->sensor_id = _sensorID;
sensor->type = SENSOR_TYPE_PRESSURE;
sensor->min_delay = 0;
sensor->max_value = 300.0F; // 300..1100 hPa
sensor->min_value = 1100.0F;
sensor->resolution = 0.01F; // 0.01 hPa resolution
sensor->max_value = -156.9064F; /* -16g = 156.9064 m/s^2 */
sensor->min_value = 156.9064F; /* 16g = 156.9064 m/s^2 */
sensor->resolution = 0.03923F; /* 4mg = 0.0392266 m/s^2 */
}

0 comments on commit 4bc5efc

Please sign in to comment.