next is keyboard bugs

This commit is contained in:
cuu
2018-11-27 15:33:42 +08:00
parent 098105f890
commit fc7afbb680
13 changed files with 76 additions and 40 deletions

View File

@@ -2,7 +2,7 @@ package DBUS
import (
"fmt"
"strconv"
//"strconv"
"github.com/godbus/dbus"
)
@@ -127,8 +127,8 @@ func (self *DBus) check_for_wireless(iwconfig string, wireless_ip string) bool
if strength == 0 {
return false
}
strength_str := strconv.Itoa(strength)
self.Daemon.Get( self.Daemon.Method("FormatSignalForPrinting",strength_str), &strength_str)
strength_str := ""
self.Daemon.Get( self.Daemon.Method("FormatSignalForPrinting",strength), &strength_str)
return true
}
@@ -174,5 +174,5 @@ var DBusHandler *DBus //global
func init() {
DBusHandler = NewDBus()
DBusHandler.Init()
fmt.Println("dbus inited")
}