We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53fa65e commit b1e8c43Copy full SHA for b1e8c43
shared-module/displayio/__init__.c
@@ -2,6 +2,7 @@
2
#include <string.h>
3
#include "shared-module/displayio/__init__.h"
4
5
+#include "py/reload.h"
6
#include "shared-bindings/displayio/Bitmap.h"
7
#include "shared-bindings/displayio/Display.h"
8
#include "shared-bindings/displayio/Group.h"
@@ -22,6 +23,12 @@ static inline void swap(uint16_t* a, uint16_t* b) {
22
23
bool refreshing_displays = false;
24
25
void displayio_refresh_displays(void) {
26
+ // Somehow reloads from the sdcard are being lost. So, cheat and reraise.
27
+ if (reload_requested) {
28
+ mp_raise_reload_exception();
29
+ return;
30
+ }
31
+
32
if (refreshing_displays) {
33
return;
34
}
0 commit comments