Is there a way, using perhaps FuelGuage or PMIC, to tell in code if a battery is connected or not?
Unfortunately the online docs for these two Firmware libraries are lacking details. I’ve played around a little and discovered that getSoC and getVCell return “reasonable” values even when no battery is connected.