pycom / pycom-micropython-sigfox

A fork of MicroPython with the ESP32 port customized to run on Pycom's IoT multi-network modules.
MIT License
199 stars 167 forks source link

Reset Causes not Implemented? #192

Open innoagg opened 6 years ago

innoagg commented 6 years ago

GPy Pycom MicroPython 1.18.0.r1 [v1.8.6-849-46a2425] on 2018-07-17; GPy with ESP32

I found some posts a couple years old regarding this, but assumed this would be been address.

The reset causes in the docs are:

0 : machine.PWRON_RESET 1 : machine.HARD_RESET 2 : machine.WDT_RESET 3 : machine.DEEPSLEEP_RESET 4 : machine.SOFT_RESET 5 : machine.BROWN_OUT_RESET

I only see the following values come back after the following:

POR Reset = 0 Brownout Reset = 0 Hard Reset = 0 Soft Reset = 2 WDT Reset = 2

So...Is this not fully implemented yet? As it is I can not distinguish the different reset causes.

nevercast commented 6 years ago

I'm seeing this issue on 1.19.0.b4 also