Skip to content

Commit d3cfb2a

Browse files
committed
fix: use correct length for set effects request
1 parent faf79f0 commit d3cfb2a

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ The format is based on [Keep a Changelog][],
66
and this project adheres to [Semantic Versioning][].
77

88

9+
## [v0.8.1](https://github.com/mishamyrt/nuga-lib/releases/tag/v0.8.1) - 2024-05-02
10+
### Bug Fixes
11+
- use correct length for set effects request
12+
13+
914
## [v0.8.0](https://github.com/mishamyrt/nuga-lib/releases/tag/v0.8.0) - 2024-05-02
1015
### Bug Fixes
1116
- declare custom header type
@@ -183,7 +188,8 @@ and this project adheres to [Semantic Versioning][].
183188

184189
[keep a changelog]: https://keepachangelog.com/en/1.0.0/
185190
[semantic versioning]: https://semver.org/spec/v2.0.0.html
186-
[Unreleased]: https://github.com/mishamyrt/nuga-lib/compare/v0.8.0...HEAD
191+
[Unreleased]: https://github.com/mishamyrt/nuga-lib/compare/v0.8.1...HEAD
192+
[v0.8.1]: https://github.com/mishamyrt/nuga-lib/compare/v0.8.0...v0.8.1
187193
[v0.8.0]: https://github.com/mishamyrt/nuga-lib/compare/v0.7.5...v0.8.0
188194
[v0.7.5]: https://github.com/mishamyrt/nuga-lib/compare/v0.7.4...v0.7.5
189195
[v0.7.4]: https://github.com/mishamyrt/nuga-lib/compare/v0.7.3...v0.7.4

features/light/feature.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,11 @@ func (f *Feature) SetEffects(p *Effects) error {
103103
if err != nil {
104104
return err
105105
}
106-
paramsRequest := make([]byte, 1032)
106+
paramsRequest := make([]byte, 0, 1032)
107107
paramsRequest = append(paramsRequest, CmdSetParams...)
108108
paramsRequest = append(paramsRequest, p.Bytes()...)
109109
paramsRequest = append(paramsRequest, currentParams...)
110+
paramsRequest = append(paramsRequest, make([]byte, 770)...)
110111
return f.handle.Send(paramsRequest)
111112
}
112113

0 commit comments

Comments
 (0)