Skip to content

Commit

Permalink
Fixed transmission of soil moisture value
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bs committed Nov 4, 2022
1 parent beda210 commit 8e3037b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BresserWeatherSensorTTN.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,7 @@ cSensor::doUplink(void) {
if (s1 > -1) {
// soil sensor data available
encoder.writeTemperature(weatherSensor.sensor[s1].temp_c);
encoder.writeUint8(weatherSensor.sensor[s1].humidity);
encoder.writeUint8(weatherSensor.sensor[s1].moisture);
} else {
// fill with suspicious dummy values
encoder.writeTemperature(-30);
Expand Down

0 comments on commit 8e3037b

Please sign in to comment.