Change dbus calls to be sync
This commit is contained in:
parent
6987925dec
commit
7ccca15de7
6
main.go
6
main.go
@ -59,13 +59,13 @@ func main() {
|
|||||||
}
|
}
|
||||||
if ev.Code == evdev.KEY_F24 && ev.Value == 1 {
|
if ev.Code == evdev.KEY_F24 && ev.Value == 1 {
|
||||||
slog.Info("PTT ON")
|
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 {
|
if ev.Code == evdev.KEY_F24 && ev.Value == 0 {
|
||||||
slog.Info("PTT OFF")
|
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")
|
slog.Info("Exiting")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user