#alarm.sleep_memory

1 messages · Page 1 of 1 (latest)

candid hazel
#

alarm.sleep_memory now throws an exception. I can't figure what changed. I'm using the same version of circuitpython as always. I don't think the module bundle has changed. (VSCode may have updated without me knowing it.)

I searched the forums for a hint about a change. Nothing!

]0;🐍REPL | 8.0.5\

Adafruit CircuitPython 8.0.5 on 2023-03-31; Waveshare RP2040-Zero with rp2040

import alarm

alarm.sleep_memory[0] = 10
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IndexError: index out of range

acoustic copper
#

it works on my Pico W with 8.2.9 ...try updating CP firmware?

candid hazel
#

I am stuck. I don't know where to start on resolving this alarm.sleep_memory "index out of range" exception. Please, any suggestions on what to try?

acoustic copper
#

it's in the firmware, there is no python library, but I'm not sure why this would happen, especially after a fresh hard reset (power cycle)

candid hazel
#

I was afraid of updating CP to the latest version for fear of breaking other things. But I just tried version 8.2.9 and the problem has gone away. 😎

#

Thank you