wrong logical polarity fixed
This commit is contained in:
		| @@ -23,9 +23,9 @@ public: | |||||||
|     switch (m_state) { |     switch (m_state) { | ||||||
|     case 0: |     case 0: | ||||||
|       if (P2IN & m_bit) { |       if (P2IN & m_bit) { | ||||||
|         m_cnt++; |  | ||||||
|       } else { |  | ||||||
|         m_cnt = 0; |         m_cnt = 0; | ||||||
|  |       } else { | ||||||
|  |         m_cnt++; | ||||||
|       } |       } | ||||||
|       if (m_cnt > 100) { |       if (m_cnt > 100) { | ||||||
|         m_state = 1; |         m_state = 1; | ||||||
| @@ -38,9 +38,9 @@ public: | |||||||
|       break; |       break; | ||||||
|     case 2: |     case 2: | ||||||
|       if (P2IN & m_bit) { |       if (P2IN & m_bit) { | ||||||
|         m_cnt = 0; |  | ||||||
|       } else { |  | ||||||
|         m_cnt++; |         m_cnt++; | ||||||
|  |       } else { | ||||||
|  |         m_cnt = 0; | ||||||
|       } |       } | ||||||
|       if (m_cnt > 20) { |       if (m_cnt > 20) { | ||||||
|         m_state = 0; |         m_state = 0; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Wolfgang Hottgenroth
					Wolfgang Hottgenroth