I have a lithium ion battery powered device that I would like to allow plugging in a wall wart to power it as well.
If I put a diode on the lithium ion battery, would this prevent causing an issue to the battery when I connect the device to the wall wart supply?
Thanks,
Sean