By some reason I can’t connect to my Leonardo on macbook.
When I press “reboot” button I see the device is connected to usb in Arduino IDE in the dropdown (led is blinking on the board), but once it is rebooted it disappears form the dropdown list.
not really, I red that point before asking here, but your trick is rewrite the code during this process. so your solution is very smart and tricky, anyway I returned my board to life and happy with it tanks!