Showing
1 changed file
with
4 additions
and
3 deletions
... | @@ -8,10 +8,8 @@ const int FndFont[10] = { 0x3F, 0x06, 0x5B, 0x4F, 0x66, | ... | @@ -8,10 +8,8 @@ const int FndFont[10] = { 0x3F, 0x06, 0x5B, 0x4F, 0x66, |
8 | 0x6D, 0x7D, 0x07, 0x7F, 0x67 }; | 8 | 0x6D, 0x7D, 0x07, 0x7F, 0x67 }; |
9 | const int Keypad[3] = { 11,9,10 }; | 9 | const int Keypad[3] = { 11,9,10 }; |
10 | int time = 0; | 10 | int time = 0; |
11 | -int data[] = { 0,0,0,0,0,0 }; | ||
12 | int state = 2; | 11 | int state = 2; |
13 | 12 | ||
14 | - | ||
15 | void FndSelect(int position){ | 13 | void FndSelect(int position){ |
16 | int i; | 14 | int i; |
17 | for(i=0;i<6;i++){ | 15 | for(i=0;i<6;i++){ |
... | @@ -53,8 +51,11 @@ void stop() { | ... | @@ -53,8 +51,11 @@ void stop() { |
53 | } | 51 | } |
54 | void reset() { | 52 | void reset() { |
55 | time = 0; | 53 | time = 0; |
56 | - timer(); | 54 | + int i; |
55 | + for (i = 0; i < 6; i++) | ||
56 | + data[i] = 0; | ||
57 | state = 2; | 57 | state = 2; |
58 | + timer(); | ||
58 | } | 59 | } |
59 | void init() { | 60 | void init() { |
60 | int i; | 61 | int i; | ... | ... |
-
Please register or login to post a comment