diff --git a/main.go b/main.go index ac41da8..69eb42b 100644 --- a/main.go +++ b/main.go @@ -145,12 +145,12 @@ func eventloop() { case ble.UpdateStateEvent: state = e.State case ble.DiscoverEvent: - fmt.Printf("found %s\n", e.Peripheral.Identifier()) + fmt.Printf("found %s\n", e.Peripheral.Identifier) periphs = append(periphs, e.Peripheral) //btns = append(btns, th.Button(e.Peripheral.Name)) btns = append(btns, &widget.Button{}) fmt.Printf("len(periphs) = %d\n", len(periphs)) - if e.Peripheral.Identifier() == autoconnectID { + if e.Peripheral.Identifier == autoconnectID { b.Connect(e.Peripheral) } case ble.ConnectEvent: