Deepsleep wake reason crashes board when on battery power

  • Hi,

    When I place code in the to check the reason for wake from deepsleep (deepsleep shield) the program crashes with the error message below when on battery power:

    rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
    ets Jun 8 2016 00:22:57

    rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
    ets Jun 8 2016 00:22:57

    rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0xee
    mode:DIO, clock div:1
    ho 12 tail 0 room 4
    entry 0x400a05d4
    Traceback (most recent call last):
    File "", line 50, in <module>
    File "/flash/lib/", line 157, in get_wake_status
    File "/flash/lib/", line 81, in peek
    IndexError: bytes index out of range
    MicroPython v1.8.6-849-baa8c33 on 2018-01-29; LoPy with ESP32
    Type "help()" for more information.

    The program works fine when powered via the USB port and only crashes on battery power!

    Firmware v. 1.15.0.b1 and v. 1.0.5.

    Is this a known issue or could I be doing something odd in my code?

    Any thoughts much appreciated!

Pycom on Twitter