Skip to content

Commit

Permalink
Don't crash if someone flushes!
Browse files Browse the repository at this point in the history
  • Loading branch information
loafoe committed Oct 2, 2024
1 parent ca1a2fa commit ab31b34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions watermeter/watermeter.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ type Data struct {
WifiSsid string `json:"wifi_ssid"`
WifiStrength int `json:"wifi_strength"`
TotalLiterM3 float64 `json:"total_liter_m3"`
ActiveLiterLpm int `json:"active_liter_lpm"`
TotalLiterOffsetM3 int `json:"total_liter_offset_m3"`
ActiveLiterLpm float64 `json:"active_liter_lpm"`
TotalLiterOffsetM3 float64 `json:"total_liter_offset_m3"`
}

func New(addr string, verbose bool, logger *slog.Logger) (*Watermeter, error) {
Expand Down

0 comments on commit ab31b34

Please sign in to comment.