From 7ccca15de710d8e09f2469aa5ab9461924bbb8af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sun, 10 Mar 2024 03:20:32 +0100 Subject: [PATCH] Change dbus calls to be sync --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 7fce446..72a57d9 100644 --- a/main.go +++ b/main.go @@ -59,13 +59,13 @@ func main() { } if ev.Code == evdev.KEY_F24 && ev.Value == 1 { slog.Info("PTT ON") - obj.Go("net.sourceforge.mumble.Mumble.startTalking", 0, nil) + obj.Call("net.sourceforge.mumble.Mumble.startTalking", 0) } if ev.Code == evdev.KEY_F24 && ev.Value == 0 { slog.Info("PTT OFF") - obj.Go("net.sourceforge.mumble.Mumble.stopTalking", 0, nil) + obj.Call("net.sourceforge.mumble.Mumble.stopTalking", 0) } } - obj.Go("net.sourceforge.mumble.Mumble.stopTalking", 0, nil) + obj.Call("net.sourceforge.mumble.Mumble.stopTalking", 0) slog.Info("Exiting") }