Skip to content

Commit

Permalink
fix: bug with system sample
Browse files Browse the repository at this point in the history
  • Loading branch information
Grigorii Merkushev committed Sep 29, 2021
1 parent 2402474 commit ae0028d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions esp32/src/climate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ time in UTC
// Serial.println("4: cold side");
ClimateData coldSide = readTempHumid(dhtColdSide);

// debug
coldSide = readTempHumid(dhtHotSide);

if ((hotSide.t > 0 || hotCenter.t > 0) && (coldCenter.t > 0 || coldSide.t > 0))
{
lastNotNullReadings = now;
Expand Down
10 changes: 5 additions & 5 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ type ClimateConfig struct {
}

type System struct {
Version float64 `json:"version"`
Uptime float64 `json:"uptime"`
Hour float64 `json:"hour"`
Minute float64 `json:"minute"`
Second float64 `json:"second"`
Version string `json:"version"`
Uptime int `json:"uptime"`
Hour int `json:"hour"`
Minute int `json:"minute"`
Second int `json:"second"`
}

type Data struct {
Expand Down

0 comments on commit ae0028d

Please sign in to comment.