diff options
| author | Carl Pottle <cpottle9@outlook.com> | 2024-12-29 15:20:37 -0800 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-02-07 11:51:41 +1100 |
| commit | 55ae597bb6044c392e9264f1af09ddcc19901f44 (patch) | |
| tree | 8f9cc72fc15dc7fafc185b276852b6a9a14cbf90 /tests/basics/bytes_mult.py | |
| parent | 112f65776588ef0cc3307f8bef208a480037d7d0 (diff) | |
rp2/modmachine: Make lightsleep preserve SLEEP_EN0 and SLEEP_EN1.
The problem was introduced in d1423ef7a23793de3777e84d985f9902241e788e,
calling `machine.lightsleep()` overwrites RP2xxx registers `SLEEP_EN0` and
`SLEEP_EN1` with their power on default values.
Prior to that commit the register values were saved on entry to lightsleep
and restored before returning.
These changes restores the earlier behavior.
Fixes issue #16502.
Signed-off-by: Carl Pottle <cpottle9@outlook.com>
Diffstat (limited to 'tests/basics/bytes_mult.py')
0 files changed, 0 insertions, 0 deletions
