diff --git a/Software/src/ioController.cpp b/Software/src/ioController.cpp index b3534f8..c8e12d9 100644 --- a/Software/src/ioController.cpp +++ b/Software/src/ioController.cpp @@ -60,7 +60,7 @@ void ioController::setActiveLED(bool pBool) { void ioController::setBuzzer(bool pBool) { //TODO needs testing - if (pBool) { + if (!pBool) { PORTB |= (1 << BUZZER); //ON } else { PORTB &= ~(1 << BUZZER); //OFF diff --git a/Software/src/main.cpp b/Software/src/main.cpp index 1153744..3f08630 100644 --- a/Software/src/main.cpp +++ b/Software/src/main.cpp @@ -24,6 +24,7 @@ int main(void) { ioController io; + io.setBuzzer(false); io.deactivateChargers(); io.setActiveLED(true); io.activateChargers(); @@ -32,6 +33,8 @@ int main(void) { io.setWS2812(0, 255, 255); + + //loop till power off while (true) { checkForBattery();