mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-03-28 16:52:33 +01:00
more const cleaning
This commit is contained in:
@@ -116,7 +116,7 @@ namespace BME_Utils {
|
||||
}
|
||||
}
|
||||
|
||||
String generateTempString(float bmeTemp) {
|
||||
const String generateTempString(const float bmeTemp) {
|
||||
String strTemp;
|
||||
strTemp = String((int)bmeTemp);
|
||||
switch (strTemp.length()) {
|
||||
@@ -131,7 +131,7 @@ namespace BME_Utils {
|
||||
}
|
||||
}
|
||||
|
||||
String generateHumString(float bmeHum) {
|
||||
const String generateHumString(const float bmeHum) {
|
||||
String strHum;
|
||||
strHum = String((int)bmeHum);
|
||||
switch (strHum.length()) {
|
||||
@@ -150,7 +150,7 @@ namespace BME_Utils {
|
||||
}
|
||||
}
|
||||
|
||||
String generatePresString(float bmePress) {
|
||||
const 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 {
|
||||
}
|
||||
}
|
||||
|
||||
String readDataSensor() {
|
||||
const String readDataSensor() {
|
||||
String wx, tempStr, humStr, presStr;
|
||||
switch (wxModuleType) {
|
||||
case 1: // BME280
|
||||
|
||||
Reference in New Issue
Block a user