From 8fa8a276a6e846b356707dfb1d164df3d7b7f329 Mon Sep 17 00:00:00 2001 From: Marc-Antoine Ruel Date: Sun, 24 Jun 2018 15:11:56 -0400 Subject: [PATCH] apa102: fix typo, use DefaultOpts in cmd Reduce the number of constants by having cmd/apa102 uses the values from apa102.DefaultOpts. This increases the default intensity from 127 to 255. --- devices/apa102/apa102.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devices/apa102/apa102.go b/devices/apa102/apa102.go index 54bc70a..bd2e714 100644 --- a/devices/apa102/apa102.go +++ b/devices/apa102/apa102.go @@ -36,7 +36,7 @@ var DefaultOpts = Opts{ // Opts defines the options for the device. type Opts struct { - // NumPixels is the number of pixelsto control. If too short, the following + // NumPixels is the number of pixels to control. If too short, the following // pixels will be corrupted. If too long, the pixels will be drawn // unnecessarily but not visible issue will occur. NumPixels int