Skip to content

Commit

Permalink
sphero: fix panic by removing unnecessary go routine (hybridgroup#1117)
Browse files Browse the repository at this point in the history
  • Loading branch information
gen2thomas authored Jan 4, 2025
1 parent 6fc57ee commit ac0d59b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions drivers/ble/sphero/sphero_ollie_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,15 +231,6 @@ func (d *OllieDriver) initialize() error {
}
}()

go func() {
for {
if _, err := d.Adaptor().ReadCharacteristic(responseChara); err != nil {
panic(err)
}
time.Sleep(100 * time.Millisecond)
}
}()

d.ConfigureCollisionDetection(d.defaultCollisionConfig)
d.enableStopOnDisconnect()

Expand Down

0 comments on commit ac0d59b

Please sign in to comment.