mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2025-12-12 16:08:52 +01:00
InspectionTeam bug fix
This commit is contained in:
parent
6ccb04ce06
commit
3574a3c570
8
main.go
8
main.go
@ -149,7 +149,8 @@ func InspectionTeam(main_screen *UI.MainScreen) {
|
|||||||
fmt.Println("timeout, dim screen ",elapsed)
|
fmt.Println("timeout, dim screen ",elapsed)
|
||||||
|
|
||||||
if main_screen.TitleBar.InLowBackLight >= 0 {
|
if main_screen.TitleBar.InLowBackLight >= 0 {
|
||||||
return
|
everytime_keydown = cur_time
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if UI.FileExists(sysgo.BackLight) {
|
if UI.FileExists(sysgo.BackLight) {
|
||||||
@ -179,7 +180,8 @@ func InspectionTeam(main_screen *UI.MainScreen) {
|
|||||||
fmt.Println("timeout, close screen ", elapsed)
|
fmt.Println("timeout, close screen ", elapsed)
|
||||||
|
|
||||||
if main_screen.Closed == true {
|
if main_screen.Closed == true {
|
||||||
return
|
everytime_keydown = cur_time
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
if UI.FileExists(sysgo.BackLight) {
|
if UI.FileExists(sysgo.BackLight) {
|
||||||
d := []byte(fmt.Sprintf("%d",0))
|
d := []byte(fmt.Sprintf("%d",0))
|
||||||
@ -197,8 +199,6 @@ func InspectionTeam(main_screen *UI.MainScreen) {
|
|||||||
|
|
||||||
fmt.Println("Power Off counting down")
|
fmt.Println("Power Off counting down")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if UI.FileExists(sysgo.BackLight) { //hdmi does not have BackLight dev node
|
if UI.FileExists(sysgo.BackLight) { //hdmi does not have BackLight dev node
|
||||||
d := []byte(fmt.Sprintf("%d",last_brt))
|
d := []byte(fmt.Sprintf("%d",last_brt))
|
||||||
ioutil.WriteFile(sysgo.BackLight,d,0644)
|
ioutil.WriteFile(sysgo.BackLight,d,0644)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user