kopia lustrzana https://github.com/dl9rdz/rdz_ttgo_sonde
Add battery voltage (#183)
rodzic
e32ea8e432
commit
2dad197a9c
|
@ -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
|
||||
|
|
|
@ -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[°]
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue