void hardware::setBatteryOutput(bool enable) { IO::digitalWrite(OUTPUT_DISABLE_PIN, !enable); if(!enable) { setChargerOutput(false); setDischargerOutput(false); } }
void hardware::setBatteryOutput(bool enable) { IO::digitalWrite(OUTPUT_DISABLE_PIN, !enable); #ifdef ENABLE_BALANCER_PWR IO::digitalWrite(BALANCER_PWR_ENABLE_PIN, enable); #endif if(!enable) { setChargerOutput(false); setDischargerOutput(false); } }
void hardware::setDischargerOutput(bool enable) { if(enable) setChargerOutput(false); digitalWrite(DISCHARGE_DISABLE_PIN, !enable); }