mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-02-09 17:24:23 +01:00
seaLevelUpdate
This commit is contained in:
parent
dce743d7c2
commit
5ba4974b2f
|
|
@ -3,10 +3,12 @@
|
|||
#include "gps_utils.h"
|
||||
#include "display.h"
|
||||
|
||||
#define SEALEVELPRESSURE_HPA (1013.25)
|
||||
|
||||
extern Configuration Config;
|
||||
extern String fifthLine;
|
||||
|
||||
//#define SEALEVELPRESSURE_HPA (1013.25)
|
||||
|
||||
|
||||
namespace BME_Utils {
|
||||
|
||||
|
|
@ -98,8 +100,7 @@ String readDataSensor() {
|
|||
float newHum = bme.readHumidity();
|
||||
float newPress = (bme.readPressure() / 100.0F);
|
||||
|
||||
//float bat = analogRead(battery);
|
||||
//bme.readAltitude(SEALEVELPRESSURE_HPA)
|
||||
//bme.readAltitude(SEALEVELPRESSURE_HPA) // this is for approximate Altitude Calculation.
|
||||
|
||||
if (isnan(newTemp) || isnan(newHum) || isnan(newPress)) {
|
||||
Serial.println("BME280 Module data failed");
|
||||
|
|
|
|||
Loading…
Reference in a new issue