pycom / pycom-micropython-sigfox

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

Reset cause constants (machine.WDT_RESET, machine.SOFT_RESET) in 'machine' are incorrect #484

Open Cees-Meijer opened 4 years ago

Cees-Meijer commented 4 years ago

Please include the following information when submitting a bug report:

Board: GPy, FiPy Firmware 1.20.2.r1

When I do a 'soft reset' the machine.reset_cause() function returns a 2, which is the constant assigned to machine.WDT_RESET. machine.SOFT_RESET = 4. So either the function returns the wrong value, or the constants are incorrect.