From 7fa3860f6c0721fea5b70c3e088c53068c5fe6a9 Mon Sep 17 00:00:00 2001 From: Greg Date: Thu, 24 Oct 2019 09:00:13 -0400 Subject: [PATCH] Peripheral.Identifier is now a field, not a method. --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: