Rask Ingemann Lambertsen wrote: > (Or if you're talking specifically about the wait_for_power() while loop, > it's not clear to me that the loop will always exit with the charger > enabled, and even if it does, it's something that could easily be broken by > accident.)
Ah, now I see. If you take the power-off branch after wait_for_power, then you're indeed not charging. The intent might be a little clearer if it wasn't wait_for_power who did this, but some function called after you return from wait_for_power, but the logic makes sense to me now. Thanks, - Werner
