Skip to content

Commit

Permalink
Use int instead of int16
Browse files Browse the repository at this point in the history
  • Loading branch information
tessro committed May 4, 2021
1 parent 5df2e23 commit b904436
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,18 +118,18 @@ func (c Client) SelectEffect(name string) error {

// BrightnessProperty represents the brightness of the Nanoleaf.
type BrightnessProperty struct {
Value int16 `json:"value"`
Duration int16 `json:"duration,omitempty"`
Value int `json:"value"`
Duration int `json:"duration,omitempty"`
}

// ColorTemperatureProperty represents the color temperature of the Nanoleaf.
type ColorTemperatureProperty struct {
Value int16 `json:"value"`
Value int `json:"value"`
}

// HueProperty represents the hue of the Nanoleaf.
type HueProperty struct {
Value int16 `json:"value"`
Value int `json:"value"`
}

// OnProperty represents the power state of the Nanoleaf.
Expand All @@ -139,7 +139,7 @@ type OnProperty struct {

// SaturationProperty represents the saturation of the Nanoleaf.
type SaturationProperty struct {
Value int16 `json:"value"`
Value int `json:"value"`
}

// State represents a Nanoleaf state.
Expand Down

0 comments on commit b904436

Please sign in to comment.