diff --git a/src/drivers/safety_button/SafetyButton.cpp b/src/drivers/safety_button/SafetyButton.cpp index 48673154923..c13aee3c0e4 100644 --- a/src/drivers/safety_button/SafetyButton.cpp +++ b/src/drivers/safety_button/SafetyButton.cpp @@ -146,7 +146,7 @@ SafetyButton::FlashButton() // Turn the LED on if we have a 1 at the current bit position px4_arch_gpiowrite(GPIO_LED_SAFETY, !((uint16_t)pattern & (1 << (_blink_counter++ / 3)))); - if (_blink_counter > 45) { + if (_blink_counter >= 48) { _blink_counter = 0; } }