Use clearer variable names
This commit is contained in:
parent
62817e4fbe
commit
9bd78bccce
8
calls.go
8
calls.go
@ -27,11 +27,11 @@ func initCallNotifs(dev *infinitime.Device) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
c := make(chan *dbus.Message, 10)
|
callCh := make(chan *dbus.Message, 10)
|
||||||
monitorConn.Eavesdrop(c)
|
monitorConn.Eavesdrop(callCh)
|
||||||
go func() {
|
go func() {
|
||||||
for x := range c {
|
for event := range callCh {
|
||||||
callPath := x.Body[0].(dbus.ObjectPath)
|
callPath := event.Body[0].(dbus.ObjectPath)
|
||||||
callObj := conn.Object("org.freedesktop.ModemManager1", callPath)
|
callObj := conn.Object("org.freedesktop.ModemManager1", callPath)
|
||||||
|
|
||||||
phoneNum, err := getPhoneNum(conn, callObj)
|
phoneNum, err := getPhoneNum(conn, callObj)
|
||||||
|
Loading…
Reference in New Issue
Block a user