Porównaj commity

...

2 Commity

Autor SHA1 Wiadomość Data
oe3cjb b886643cbe
Merge pull request #27 from thovoigt/master
Remove bug when humidity = 100%
2023-08-02 16:52:51 +02:00
thovoigt 572078cf35 Remove bug when humidity = 100% it was sent as 'h100', which is NOT as in APRS spec. Now it will be sent as 'h00'. 2023-07-24 13:23:11 +02:00
1 zmienionych plików z 24 dodań i 9 usunięć

Wyświetl plik

@ -908,9 +908,14 @@ switch(tracker_mode) {
outString += helper;
outString += "r...p...P...h";
if(hum<10) {outString += "0"; }
helper = String(hum,0);
helper.trim();
outString += helper;
if(hum<100) {
helper = String(hum,0);
helper.trim();
outString += helper;
} else {
// if humidity = 100% then send it as "00" as defined in APRS spec
outString += "00";
}
#ifdef USE_BME280
outString += "b";
if(pressure<1000) {outString += "0"; }
@ -999,9 +1004,14 @@ switch(tracker_mode) {
outString += helper;
outString += "r...p...P...h";
if(hum<10) {outString += "0"; }
helper = String(hum,0);
helper.trim();
outString += helper;
if(hum<100) {
helper = String(hum,0);
helper.trim();
outString += helper;
} else {
// if humidity = 100% then send it as "00" as defined in APRS spec
outString += "00";
}
#ifdef USE_BME280
outString += "b";
if(pressure<1000) {outString += "0"; }
@ -1149,9 +1159,14 @@ case WX_MOVE:
outString += helper;
outString += "r...p...P...h";
if(hum<10) {outString += "0"; }
helper = String(hum,0);
helper.trim();
outString += helper;
if(hum<100) {
helper = String(hum,0);
helper.trim();
outString += helper;
} else {
// if humidity = 100% then send it as "00" as defined in APRS spec
outString += "00";
}
#ifdef USE_BME280
outString += "b";
if(pressure<1000) {outString += "0"; }