Skip to content

Commit b2df094

Browse files
robert-hhdpgeorge
authored andcommitted
samd/modmachine: Add machine.deepsleep as alias of machine.lightsleep.
Just for coverage. Signed-off-by: robert-hh <[email protected]>
1 parent 7a847ba commit b2df094

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ports/samd/modmachine.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ STATIC const mp_rom_map_elem_t machine_module_globals_table[] = {
256256
{ MP_ROM_QSTR(MP_QSTR_reset_cause), MP_ROM_PTR(&machine_reset_cause_obj) },
257257
{ MP_ROM_QSTR(MP_QSTR_time_pulse_us), MP_ROM_PTR(&machine_time_pulse_us_obj) },
258258
{ MP_ROM_QSTR(MP_QSTR_lightsleep), MP_ROM_PTR(&machine_lightsleep_obj) },
259+
{ MP_ROM_QSTR(MP_QSTR_deepsleep), MP_ROM_PTR(&machine_lightsleep_obj) },
259260

260261
{ MP_ROM_QSTR(MP_QSTR_bitstream), MP_ROM_PTR(&machine_bitstream_obj) },
261262
#if MICROPY_PY_MACHINE_DHT_READINTO

0 commit comments

Comments
 (0)