From 3574a3c570d3039964e504332eca41e0c6f0ac8a Mon Sep 17 00:00:00 2001 From: cuu Date: Wed, 9 Jan 2019 17:51:39 +0800 Subject: [PATCH] InspectionTeam bug fix --- main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 57be309..1be472d 100644 --- a/main.go +++ b/main.go @@ -149,7 +149,8 @@ func InspectionTeam(main_screen *UI.MainScreen) { fmt.Println("timeout, dim screen ",elapsed) if main_screen.TitleBar.InLowBackLight >= 0 { - return + everytime_keydown = cur_time + continue } if UI.FileExists(sysgo.BackLight) { @@ -179,7 +180,8 @@ func InspectionTeam(main_screen *UI.MainScreen) { fmt.Println("timeout, close screen ", elapsed) if main_screen.Closed == true { - return + everytime_keydown = cur_time + continue } if UI.FileExists(sysgo.BackLight) { d := []byte(fmt.Sprintf("%d",0)) @@ -197,8 +199,6 @@ func InspectionTeam(main_screen *UI.MainScreen) { fmt.Println("Power Off counting down") - - if UI.FileExists(sysgo.BackLight) { //hdmi does not have BackLight dev node d := []byte(fmt.Sprintf("%d",last_brt)) ioutil.WriteFile(sysgo.BackLight,d,0644)