mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-08-07 09:22:57 +02:00
const corrections
This commit is contained in:
+4
-4
@@ -116,7 +116,7 @@ namespace BME_Utils {
|
||||
}
|
||||
}
|
||||
|
||||
const String generateTempString(const float bmeTemp) {
|
||||
String generateTempString(const float bmeTemp) {
|
||||
String strTemp;
|
||||
strTemp = String((int)bmeTemp);
|
||||
switch (strTemp.length()) {
|
||||
@@ -131,7 +131,7 @@ namespace BME_Utils {
|
||||
}
|
||||
}
|
||||
|
||||
const String generateHumString(const float bmeHum) {
|
||||
String generateHumString(const float bmeHum) {
|
||||
String strHum;
|
||||
strHum = String((int)bmeHum);
|
||||
switch (strHum.length()) {
|
||||
@@ -150,7 +150,7 @@ namespace BME_Utils {
|
||||
}
|
||||
}
|
||||
|
||||
const String generatePresString(const float bmePress) {
|
||||
String generatePresString(const float bmePress) {
|
||||
String strPress = String((int)bmePress);
|
||||
String decPress = String(int((bmePress - int(bmePress)) * 10));
|
||||
switch (strPress.length()) {
|
||||
@@ -169,7 +169,7 @@ namespace BME_Utils {
|
||||
}
|
||||
}
|
||||
|
||||
const String readDataSensor() {
|
||||
String readDataSensor() {
|
||||
String wx, tempStr, humStr, presStr;
|
||||
switch (wxModuleType) {
|
||||
case 1: // BME280
|
||||
|
||||
+4
-4
@@ -12,10 +12,10 @@ namespace BME_Utils {
|
||||
|
||||
void getWxModuleAddres();
|
||||
void setup();
|
||||
const String generateTempString(const float bmeTemp);
|
||||
const String generateHumString(const float bmeHum);
|
||||
const String generatePresString(const float bmePress);
|
||||
const String readDataSensor();
|
||||
String generateTempString(const float bmeTemp);
|
||||
String generateHumString(const float bmeHum);
|
||||
String generatePresString(const float bmePress);
|
||||
String readDataSensor();
|
||||
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -66,7 +66,7 @@ namespace Utils {
|
||||
}
|
||||
}
|
||||
|
||||
const String getLocalIP() {
|
||||
String getLocalIP() {
|
||||
if (!WiFiConnected) {
|
||||
return "IP : 192.168.4.1";
|
||||
} else if (backUpDigiMode) {
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ public:
|
||||
namespace Utils {
|
||||
|
||||
void processStatus();
|
||||
const String getLocalIP();
|
||||
String getLocalIP();
|
||||
void setupDisplay();
|
||||
void activeStations();
|
||||
void checkBeaconInterval();
|
||||
|
||||
Reference in New Issue
Block a user