Browse files

make data_reset() zero cnt

  • Loading branch information...
1 parent 2e78167 commit c1058381e25ec9b6a92263b4b63bff43ad05f83f @esmil esmil committed Jul 25, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 door.c
View
4 door.c
@@ -84,6 +84,8 @@ data_reset()
for (i = 0; i < 256; i++)
data[i] = i;
+
+ cnt = 0;
}
ISR(INT0_vect)
@@ -184,14 +186,12 @@ main()
serial_print(hash_string);
}
data_reset();
- cnt = 0;
}
if (second > 10*4) {
serial_print("ALIVE\n");
second = 0;
data_reset();
- cnt = 0;
}
switch (serial_getchar()) {

0 comments on commit c105838

Please sign in to comment.