fix: resistance measurement, discharge strategy