Change dbus calls to be sync

This commit is contained in:
Torjus Håkestad 2024-03-10 03:20:32 +01:00
parent 6987925dec
commit 7ccca15de7

View File

@ -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")
}