Commit 27f20a24 authored by Sven Greiner's avatar Sven Greiner

Fix #12: Move delay before batcheck and beacon

parent 3c10d26c
......@@ -502,6 +502,7 @@ int main(void) {
#ifdef BATTCHECK
case kBattcheck:
{
delay_s();
const uint8_t voltage = battery_voltage();
uint8_t i = sizeof(voltage_table) - 1;
......@@ -511,20 +512,19 @@ int main(void) {
set_pwm(FLASH_PWM);
blink(i+1, FLASH_TIME);
delay_s();
break;
}
#endif // ifdef BATTCHECK
#ifdef BEACON
case kBeacon:
delay_s();
set_pwm(TURBO_PWM);
blink(2, 3);
if (!options.stealth_beacon) {
set_pwm(BEACON_PWM);
enable_output();
}
delay_s();
if (options.slow_beacon) {
delay_s();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment