aboutsummaryrefslogtreecommitdiff
path: root/app.go
diff options
context:
space:
mode:
Diffstat (limited to 'app.go')
-rw-r--r--app.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/app.go b/app.go
index 0b0c3b9..d0ab2de 100644
--- a/app.go
+++ b/app.go
@@ -166,12 +166,11 @@ func (a *App) sendCommand(data []byte) error {
return fmt.Errorf("failed to get output endpoint: %v", err)
}
- written, err := outEndpoint.Write(data)
- if err == nil {
- fmt.Printf("Success on endpoint 0x%02x! Sent %d bytes\n", endpoint, written)
- return nil
+ _, err = outEndpoint.Write(data)
+ if err != nil {
+ return fmt.Errorf("failed to send on any endpoint")
}
- return fmt.Errorf("failed to send on any endpoint")
+ return nil
}
func (a *App) ExportGrid(filename string, grid [][]bool) error {