From ac0d59b77ae57500cb099710f639fe27c387fa2e Mon Sep 17 00:00:00 2001 From: Thomas Kohler Date: Sat, 4 Jan 2025 14:55:05 +0100 Subject: [PATCH] sphero: fix panic by removing unnecessary go routine (#1117) --- drivers/ble/sphero/sphero_ollie_driver.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/ble/sphero/sphero_ollie_driver.go b/drivers/ble/sphero/sphero_ollie_driver.go index a2dfcb54d..cfb1001a7 100644 --- a/drivers/ble/sphero/sphero_ollie_driver.go +++ b/drivers/ble/sphero/sphero_ollie_driver.go @@ -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()