Skip to content

Commit ac0d59b

Browse files
authored
sphero: fix panic by removing unnecessary go routine (hybridgroup#1117)
1 parent 6fc57ee commit ac0d59b

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

drivers/ble/sphero/sphero_ollie_driver.go

-9
Original file line numberDiff line numberDiff line change
@@ -231,15 +231,6 @@ func (d *OllieDriver) initialize() error {
231231
}
232232
}()
233233

234-
go func() {
235-
for {
236-
if _, err := d.Adaptor().ReadCharacteristic(responseChara); err != nil {
237-
panic(err)
238-
}
239-
time.Sleep(100 * time.Millisecond)
240-
}
241-
}()
242-
243234
d.ConfigureCollisionDetection(d.defaultCollisionConfig)
244235
d.enableStopOnDisconnect()
245236

0 commit comments

Comments
 (0)