diff options
Diffstat (limited to 'common/button.c')
-rw-r--r-- | common/button.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/button.c b/common/button.c index 1ccc548c75..4ca1dac852 100644 --- a/common/button.c +++ b/common/button.c @@ -367,7 +367,8 @@ static int console_command_button(int argc, char **argv) button_interrupt_simulate(button_idx); /* Hold the button(s) */ - msleep(press_ms); + if (press_ms > 0) + msleep(press_ms); /* Release the button(s) */ for (button_idx = 0; button_idx < BUTTON_COUNT; button_idx++) |