diff --git a/Button.cpp b/Button.cpp index ab4047b..bbea283 100644 --- a/Button.cpp +++ b/Button.cpp @@ -78,7 +78,10 @@ bool PulsedButton::Update(Joystick* js) { switch(type) { case BUTTON_PULSED: - if (reader->On()) js->PressButton(vbutton); + if (reader->On()) { + js->PressButton(vbutton); + release_time1 = millis() + 250; + } break; case BUTTON_PULSED_DOUBLE_ACTION: js->PressButton(vbutton); diff --git a/Matrix.cpp b/Matrix.cpp index 116f9cd..9f7d2b8 100644 --- a/Matrix.cpp +++ b/Matrix.cpp @@ -19,7 +19,6 @@ void Matrix::Activate(uint8_t pin) { _enable(pin); active_pin = pin; - delayMicroseconds(10); // allow ample time for signal to propagate } void Matrix::_enable(uint8_t pin) {