Meco Man 4 anos atrás
pai
commit
272f3190eb
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      multi_button.c

+ 4 - 0
multi_button.c

@@ -169,6 +169,10 @@ void button_handler(struct button* handle)
                 handle->state = 0;
             }
         }
+        else if(handle->ticks > LONG_TICKS)
+        {
+            handle->state = 5;
+        }
         break;
 
     case 5: