diff options
Diffstat (limited to 'workspace/ts100/src/Interrupt.c')
-rw-r--r-- | workspace/ts100/src/Interrupt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/workspace/ts100/src/Interrupt.c b/workspace/ts100/src/Interrupt.c index bbe34e86..f3b9f27d 100644 --- a/workspace/ts100/src/Interrupt.c +++ b/workspace/ts100/src/Interrupt.c @@ -24,7 +24,7 @@ uint8_t getButtons() { //We want to check the times for the lat buttons & also the rawKeys state
//If a key has just gone down, rawKeys & KEY ==1
uint8_t out = 0;
- if (millis() - AkeyChange > 30) {
+ if (millis() - AkeyChange > 100) {
if (LongKeys & BUT_A) {
if (rawKeys & BUT_A) {
if (millis() - AkeyChange > 800) {
@@ -41,7 +41,7 @@ uint8_t getButtons() { } else if (LongKeys & (BUT_A << 2)) {
if (rawKeys & BUT_A) {
- if (millis() - AkeyChange > 300) {
+ if (millis() - AkeyChange > 100) {
out |= BUT_A;
AkeyChange = millis();
}
@@ -61,7 +61,7 @@ uint8_t getButtons() { }
}
}
- if (millis() - BkeyChange > 30) {
+ if (millis() - BkeyChange > 100) {
if (LongKeys & BUT_B) {
if (rawKeys & BUT_B) {
if (millis() - BkeyChange > 800) {
@@ -76,7 +76,7 @@ uint8_t getButtons() { }
} else if (LongKeys & (BUT_B << 2)) {
if (rawKeys & BUT_B) {
- if (millis() - BkeyChange > 300) {
+ if (millis() - BkeyChange > 100) {
out |= BUT_B;
BkeyChange = millis();
}
|