The initAllChargerRegisters() function writes the default values of all the setup registers and read the values of the status registers. To change the values of the registers according to your needs ...
[484841][E][esp32-hal-i2c-slave.c:565] i2c_slave_check_line_state(): Bus Invalid State, Can't init sda=0, scl=1 [484851][E][esp32-hal-i2c-slave.c:309] i2cSlaveInit ...