• Thorsten von Eicken's avatar
    esp32: Make machine.soft_reset() work in main.py and reset_cause(). · d28dbcd6
    Thorsten von Eicken authored
    This commit fixes two issues on the esp32:
    - it enables machine.soft_reset() to be called in main.py;
    - it enables machine.reset_cause() to correctly identify a soft reset.
    
    The former is useful in that it enables soft resets in applications that
    are started at boot time.  The support is patterned after the stm32 port.
    d28dbcd6
modmachine.c 11 KB