Hi all,
just wrote your great firmware to my device. One hint: I have two usb-to-uart devices, so I connect my Aubess Power Monitor Switch 3,3V line to one of them, and Rx, Tx and Ground to another. So when I was asked to re-plug power, I did it on first usb-to-uart, and my data link stays intact on second.
My device is slightly different. Here's some photo:
On the second photo, at top of board, you can see cutted route. It is Rx1, cutted to avoid interference with other devices on board, in my case it is BL0542 power monitor.