From 3b6f38eb6504fcaec863dbf718038f4f4f0f17ed Mon Sep 17 00:00:00 2001 From: Tilman Date: Mon, 28 Mar 2022 13:41:04 +0200 Subject: [PATCH] bug: int overflow --- pro_micro_timed-key/pro_micro_timed-key.ino | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pro_micro_timed-key/pro_micro_timed-key.ino b/pro_micro_timed-key/pro_micro_timed-key.ino index 86a1a4c..e17f59d 100644 --- a/pro_micro_timed-key/pro_micro_timed-key.ino +++ b/pro_micro_timed-key/pro_micro_timed-key.ino @@ -2,10 +2,11 @@ #include "Keyboard.h" -const int waitTime = 480000; // 8 minutes +const unsigned long waitTime = 300000; // 5 minutes const int buttonPin = 2; void setup() { + Serial.begin(9600); Serial.println("Starting HID"); pinMode(buttonPin, INPUT_PULLUP); Keyboard.begin(); @@ -26,6 +27,6 @@ void loop() { Serial.println("LOW"); } - // wait 8 minutes + // wait delay(waitTime); }