The PFET prevents the USB power from trying to charge the battery when its connected to BAT_IN, but not when it's on VBAT
@DrAzzy started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
The PFET prevents the USB power from trying to charge the battery when its connected to BAT_IN, but not when it's on VBAT