Skip to content

Commit

Permalink
Fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kalouantonis committed Dec 7, 2012
1 parent 521bae8 commit fd60c25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion binary_clock.ino
Expand Up @@ -84,7 +84,7 @@ void loop()
int minute_val = minute_loop(minutes);
int hour_val = hour_loop(hours);

if((minute_val != 0) && (hour_val != 0)) /* Check validation of data*/
if((minute_val != 0) || (hour_val != 0)) /* Check validation of data*/
{
Serial.print("Error in minute or hour calculation: Return value not 0\n");
exit(1);
Expand Down

0 comments on commit fd60c25

Please sign in to comment.