###Power Management on the Electron Beta
Our Electron beta users have reported that in some cases the battery on the Electron discharges completely and the Electron stops working even with the USB power plugged in. Pressing the reset button does not do anything and the only way to bring it back to life is by plugging the USB out and plugging it back again.
Why does this happen? The PMIC, (Power Management IC) BQ24195, uses the USB data pins to determine if there is a computer present or a compliant USB charger at the other end. While this works on most standard computers, the PMIC has a hard time detecting some chargers and defaults back to a safe input current limit of 100mA. This current is too low for the electron to both operate and charge the battery at the same time. In the current electron beta hardware configuration, the only way to overcome this is by updating the charge rate of the battery at regular intervals. This can be accomplished by calling the following function:
Note: We must also di