Explorar o código

Merge pull request #5 from mysterywolf/master

fix bug #3
流光 %!s(int64=5) %!d(string=hai) anos
pai
achega
7b2589b86f
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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 > SHORT_TICKS)
+        {
+            handle->state = 0;
+        }
         break;
 
     case 5: