From 1e97025bcaf196b6a0cbccb8a1143dc216dd6a55 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Thu, 18 Mar 2021 23:38:11 -0500 Subject: [PATCH] Use float64 --- lights.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lights.go b/lights.go index bce546f..15fb507 100644 --- a/lights.go +++ b/lights.go @@ -90,11 +90,11 @@ type ( Breathe struct { Color Color `json:"color,omitempty"` FromColor Color `json:"from_color,omitempty"` - Period float32 `json:"period,omitempty"` - Cycles float32 `json:"cycles,omitempty"` + Period float64 `json:"period,omitempty"` + Cycles float64 `json:"cycles,omitempty"` Persist bool `json:"persist,omitempty"` PowerOn bool `json:"power_on,omitempty"` - Peak float32 `json:"peak,omitempty"` + Peak float64 `json:"peak,omitempty"` } ) @@ -251,4 +251,4 @@ func (c *Client) Breathe(selector string, breathe Breathe) (*LifxResponse, error } return s, nil -} \ No newline at end of file +}