Skip to content

Commit 89a0f37

Browse files
kmatch98tannewt
andauthored
Update shared-bindings/supervisor/__init__.c
Co-authored-by: Scott Shawcroft <[email protected]>
1 parent ff36932 commit 89a0f37

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

shared-bindings/supervisor/__init__.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,12 @@ MP_DEFINE_CONST_FUN_OBJ_0(supervisor_disable_ble_workflow_obj, supervisor_disabl
305305
//| ...
306306
//|
307307
STATIC mp_obj_t supervisor_reset_terminal(mp_obj_t x_pixels, mp_obj_t y_pixels) {
308+
#if CIRCUITPY_DISPLAYIO
308309
supervisor_stop_terminal();
309310
supervisor_start_terminal(mp_obj_get_int(x_pixels), mp_obj_get_int(y_pixels));
311+
#else
312+
mp_raise_NotImplementedError(NULL);
313+
#endif
310314
return mp_const_none;
311315
}
312316
MP_DEFINE_CONST_FUN_OBJ_2(supervisor_reset_terminal_obj, supervisor_reset_terminal);

0 commit comments

Comments
 (0)