File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ func watchTsEvents() {
210
210
func startBacklightTickers () {
211
211
LoadConfig ()
212
212
if dimTicker == nil && config .DisplayDimAfterSec != 0 {
213
- fmt .Printf ("display: dim_ticker has started. " )
213
+ fmt .Printf ("display: dim_ticker has started\n " )
214
214
dimTicker = time .NewTicker (time .Duration (config .DisplayDimAfterSec ) * time .Second )
215
215
defer dimTicker .Stop ()
216
216
@@ -225,7 +225,7 @@ func startBacklightTickers() {
225
225
}
226
226
227
227
if offTicker == nil && config .DisplayOffAfterSec != 0 {
228
- fmt .Printf ("display: off_ticker has started. " )
228
+ fmt .Printf ("display: off_ticker has started\n " )
229
229
offTicker = time .NewTicker (time .Duration (config .DisplayOffAfterSec ) * time .Second )
230
230
defer offTicker .Stop ()
231
231
@@ -243,14 +243,14 @@ func startBacklightTickers() {
243
243
func init () {
244
244
go func () {
245
245
waitCtrlClientConnected ()
246
+ startBacklightTickers ()
246
247
fmt .Println ("setting initial display contents" )
247
248
time .Sleep (500 * time .Millisecond )
248
249
updateStaticContents ()
249
250
displayInited = true
250
251
fmt .Println ("display inited" )
251
- wakeDisplay (false )
252
+ wakeDisplay (true )
252
253
requestDisplayUpdate ()
253
- startBacklightTickers ()
254
254
}()
255
255
256
256
go watchTsEvents ()
You can’t perform that action at this time.
0 commit comments