I have D1 mini ESP8266 with Micropython firmvare and I dont know if there is bug...
My program is created for button socket with mqtt and works. I have one led to indicate button pressed and can be operate with the button or mobile phone as mqtt client. But I discover that if the button is pressed several times quickly it resets whole program and blocks its firmware. I can even upload new script to it with uPyCraft IDE. If reboot, it opens couple of times on my laptops port and can see that script in it is broken, it is empty. It somehow erase main script and one thing that can be done is to flash firmware again and upload scripts again. My debounce function opens txt file and writes text ON or OFF in it (I use with statement to open file with no close while this statement closes file automatically). Yesterday I refleash 6 times

Anyone have this strange problem?
Thanx,
Jadro