Skip to content

Commit 125faae

Browse files
committed
Avoid crashing when printing DeepSleepRequest objects
1 parent e445047 commit 125faae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-bindings/alarm/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ static mp_obj_t alarm_exit_and_deep_sleep_until_alarms(size_t n_args, const mp_o
196196
common_hal_alarm_set_deep_sleep_alarms(n_args, pos_args, num_dios, dios_array);
197197

198198
// Raise an exception, which will be processed in main.c.
199-
mp_raise_type_arg(&mp_type_DeepSleepRequest, NULL);
199+
mp_raise_type(&mp_type_DeepSleepRequest);
200200

201201
// Doesn't get here.
202202
return mp_const_none;

0 commit comments

Comments
 (0)