* Pavel Machek <pavel@xxxxxx> [191013 11:31]: > Would it be better to return 0 for < 3.8V values? No, it's setting the charge current to zero that controls the charger. > > + case 4100000 ... 4120000 - 1: return 4120000; > > I believe this should be 4100000. Thanks for spotting that one. Regards, Tony