mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-03-25 05:12:49 +01:00
titlebar roundrobin check
This commit is contained in:
1
main.go
1
main.go
@@ -292,6 +292,7 @@ func run() int {
|
|||||||
|
|
||||||
go FlashLed1(main_screen)
|
go FlashLed1(main_screen)
|
||||||
go InspectionTeam(main_screen)
|
go InspectionTeam(main_screen)
|
||||||
|
go main_screen.TitleBar.RoundRobinCheck()
|
||||||
|
|
||||||
running := true
|
running := true
|
||||||
for running {
|
for running {
|
||||||
|
|||||||
@@ -298,6 +298,7 @@ func (self *TitleBar) SetBatteryStat( bat int) {
|
|||||||
func (self *TitleBar) CheckBluetooth() {
|
func (self *TitleBar) CheckBluetooth() {
|
||||||
|
|
||||||
out := System("hcitool dev | grep hci0 |cut -f3")
|
out := System("hcitool dev | grep hci0 |cut -f3")
|
||||||
|
|
||||||
if len(out) < 17 {
|
if len(out) < 17 {
|
||||||
fmt.Println("Titlebar CheckBluetooth: no bluetooth",out)
|
fmt.Println("Titlebar CheckBluetooth: no bluetooth",out)
|
||||||
self.Icons["bluetooth"].SetIconIndex(2)
|
self.Icons["bluetooth"].SetIconIndex(2)
|
||||||
|
|||||||
Reference in New Issue
Block a user