diff --git a/RX_FSK/src/RS41.cpp b/RX_FSK/src/RS41.cpp index aa66d46..83d2a5b 100644 --- a/RX_FSK/src/RS41.cpp +++ b/RX_FSK/src/RS41.cpp @@ -685,6 +685,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 d16dbd0..fdf79cb 100644 --- a/RX_FSK/src/Sonde.h +++ b/RX_FSK/src/Sonde.h @@ -110,6 +110,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[°]