SparkFun_BQ27441_Arduino_Library icon indicating copy to clipboard operation
SparkFun_BQ27441_Arduino_Library copied to clipboard

Correct BATTERY_CAPACITY configuration

Open Kabron287 opened this issue 4 years ago • 1 comments

In the BQ27441_Extended_Configuration example lipo.setCapacity(BATTERY_CAPACITY) command executed AFTER entering config mode(lipo.enterConfig()), while in the BQ27441_Basic example it executed WITHOUT entering config mode. Is it correct?

Kabron287 avatar Mar 23 '21 07:03 Kabron287

both are correct. setCapacity will call enterConfig as long as enterConfig has not been previously called (without parameters or with true as parameter). However if you call enterConfig with no parameters, then call exitConfig, then at somepoint call setCapacity or other config functions without calling enterConfig first they will fail. Alternately call enterConfig(false), exitConfig then you can call setCapacity without calling enterConfig.

wystewart avatar Feb 10 '25 05:02 wystewart