Merge
This commit is contained in:
commit
24477d0045
@ -23,9 +23,9 @@ public:
|
||||
switch (m_state) {
|
||||
case 0:
|
||||
if (P2IN & m_bit) {
|
||||
m_cnt++;
|
||||
} else {
|
||||
m_cnt = 0;
|
||||
} else {
|
||||
m_cnt++;
|
||||
}
|
||||
if (m_cnt > 100) {
|
||||
m_state = 1;
|
||||
@ -38,9 +38,9 @@ public:
|
||||
break;
|
||||
case 2:
|
||||
if (P2IN & m_bit) {
|
||||
m_cnt = 0;
|
||||
} else {
|
||||
m_cnt++;
|
||||
} else {
|
||||
m_cnt = 0;
|
||||
}
|
||||
if (m_cnt > 20) {
|
||||
m_state = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user