aboutsummaryrefslogtreecommitdiff
path: root/unicorn/RealUnicorn2.go
diff options
context:
space:
mode:
Diffstat (limited to 'unicorn/RealUnicorn2.go')
-rw-r--r--unicorn/RealUnicorn2.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/unicorn/RealUnicorn2.go b/unicorn/RealUnicorn2.go
index 991e79f..72b4ed7 100644
--- a/unicorn/RealUnicorn2.go
+++ b/unicorn/RealUnicorn2.go
@@ -13,7 +13,7 @@ import (
)
type RealUnicorn2 struct {
- BaseUnicorn2
+ *BaseUnicorn2
device *spi.Device
}
@@ -55,11 +55,17 @@ func NewUnicorn2() (*RealUnicorn2, error) {
return nil, err
}
return &RealUnicorn2{
- BaseUnicorn2{},
+ NewBaseUnicorn2(),
dev,
}, nil
}
+// StartRender ...
+// Passes through to base to actually do the render
+func (u *RealUnicorn2) StartRender() chan bool {
+ return u.StartRenderBase(u.renderImage)
+}
+
// MainLoop ...
// Just blocks until sigterm
func (u *RealUnicorn2) MainLoop() {