Navigation Menu

Skip to content

Commit

Permalink
Fixed syntax error in Error State function
Browse files Browse the repository at this point in the history
  • Loading branch information
pyr0ball committed Jan 9, 2019
1 parent d053b05 commit 5d840f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ATmega48_Piezo_Sensor/ATmega48_Piezo_Sensor.ino
Expand Up @@ -141,11 +141,11 @@ void adjustVoltage() {
}

void checkError () {
if (ERR_STATE = 1) {
if (ERR_STATE == 1) {
digitalWrite(ERR_LED, BlinkState);
BlinkState = !BlinkState;
}
if (ERR_STATE = 0) {
if (ERR_STATE == 0) {
BlinkState = LOW;
digitalWrite(ERR_LED, BlinkState);
}
Expand Down

0 comments on commit 5d840f2

Please sign in to comment.