We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 722f35d + d914aed commit a3bbb83Copy full SHA for a3bbb83
esp32/modules/tasks/services.py
@@ -137,7 +137,10 @@ def draw_task():
137
rqi = 0
138
try:
139
cb = drawCallbacks[i].draw
140
- [rqi, space_used] = cb(y)
+ try:
141
+ [rqi, space_used] = cb(y, False)
142
+ except:
143
+ [rqi, space_used] = cb(y)
144
y = y - space_used
145
except BaseException as e:
146
print("[SERVICES] Exception in service draw:")
@@ -188,7 +191,10 @@ def force_draw(goingToSleep=False):
188
191
cb = srv.draw_going_to_sleep
189
192
except:
190
193
cb = srv.draw
194
195
+ [rqi, space_used] = cb(y, True)
196
197
198
199
200
print("[SERVICES] Exception in service draw: ")
0 commit comments