Power supply connector

majenko:

Chrono251:
Is there a way to make sure that power is drawn from the battery until the external connector is properly plugged in? There is a small range while plugging in external power where the PCB is not powered at all.

Yes, don't use the switch but use the diodes instead.

Allright, I'll do it this way.
Thanks for your help!