File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 57
57
58
58
print ("refreshed" )
59
59
60
- time .sleep (120 )
60
+ time .sleep (display .time_to_refresh + 5 )
61
+ # Always refresh a little longer. It's not a problem to refresh
62
+ # a few seconds more, but it's terrible to refresh too early
63
+ # (the display will throw an exception when if the refresh
64
+ # is too soon)
65
+ print ("waited correct time" )
66
+
67
+
68
+ # Keep the display the same
69
+ while True :
70
+ time .sleep (10 )
Original file line number Diff line number Diff line change 64
64
65
65
print ("refreshed" )
66
66
67
- time .sleep (120 )
67
+ time .sleep (display .time_to_refresh + 5 )
68
+ # Always refresh a little longer. It's not a problem to refresh
69
+ # a few seconds more, but it's terrible to refresh too early
70
+ # (the display will throw an exception when if the refresh
71
+ # is too soon)
72
+ print ("waited correct time" )
73
+
74
+
75
+ # Keep the display the same
76
+ while True :
77
+ time .sleep (10 )
You can’t perform that action at this time.
0 commit comments