diff --git a/RX_FSK/src/RS41.cpp b/RX_FSK/src/RS41.cpp index 9b0c2bb..c73ec7a 100644 --- a/RX_FSK/src/RS41.cpp +++ b/RX_FSK/src/RS41.cpp @@ -687,6 +687,7 @@ int RS41::decode41(byte *data, int maxlen) Serial.print("; RS41 ID "); snprintf(buf, 10, "%.8s ", data+p+2); Serial.print(buf); + sonde.si()->batteryVoltage = data[p+10] / 10.0f; si->type=STYPE_RS41; if(strncmp(si->id, (const char *)(data+p+2), 8)) { // ID changed, i.e. new sonde on same frequency. clear calibration data diff --git a/RX_FSK/src/Sonde.h b/RX_FSK/src/Sonde.h index a1e122b..1d1e556 100644 --- a/RX_FSK/src/Sonde.h +++ b/RX_FSK/src/Sonde.h @@ -111,6 +111,7 @@ typedef struct st_sondeinfo { float temperature = -300.0; // platinum resistor temperature float tempRHSensor = -300.0; // temperature of relative humidity sensor float relativeHumidity = -1.0; // relative humidity + float batteryVoltage = -1; } SondeInfo; // rxStat: 3=undef[empty] 1=timeout[.] 2=errro[E] 0=ok[|] 4=no valid position[°]