Use float64

This commit is contained in:
Ryan Cavicchioni 2021-03-18 23:38:11 -05:00
parent 6128b7c0c3
commit 1e97025bca
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D

View File

@ -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
}
}