When the battery is not present , I get unrealistic number’s back from getSoC() ( like 167.585938 ) , But is seems inconsistent . For example I get getSoC() = 91.648438 back when the battery is present , but then I unplug the battery , and I still get the same values. The same is true when I get getSoC() = 167.585938 when the battery is not present , but once I plug the battery back in , I still get the same values for a while .
Even when I reset ( reset button ) the Photon after I removed the battery , it still reports same getSoC() value , what it was before I removed the battery .
So how to detect battery presence , on boot or when it was remove / added while it was running ?