From d46f2cc2067aeb70265274ac6aff5ac2556c4616 Mon Sep 17 00:00:00 2001 From: Carter Melnychuk <82341302+Cartermel@users.noreply.github.com> Date: Wed, 29 May 2024 14:01:47 -0600 Subject: [PATCH] fix: assign char handle write event (#274) --- gatts_windows.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gatts_windows.go b/gatts_windows.go index d96b7cd..5bc3a0c 100644 --- a/gatts_windows.go +++ b/gatts_windows.go @@ -216,6 +216,7 @@ func (a *Adapter) AddService(s *Service) error { char.Handle.value = char.Value char.Handle.valueMtx = &sync.Mutex{} char.Handle.flags = char.Flags + char.Handle.writeEvent = char.WriteEvent goChars[uuid] = char.Handle } }