Mantis: move tap_esc to extras

This way we work around an issue where tap_esc got stuck during bootup
in a cold boot.
This commit is contained in:
Julian Oes 2021-10-12 13:18:46 +02:00 committed by Daniel Agar
parent 24bdf79180
commit e15cbc3a6b
2 changed files with 18 additions and 17 deletions

View File

@ -29,20 +29,3 @@ set MIXER_FILE ""
set MIXER "skip"
set OUTPUT_MODE "skip"
# Start ESC already here, so that we have beeps.
tap_esc start -d /dev/ttyS4 -n 4
# Transition from previous non open-source flight stack
if param compare SYS_AUTOSTART 4001
then
param reset_all
tune_control play -t 4
sleep 2
if bl_update /etc/extras/bootloader.bin
then
tune_control play -t 3
else
tune_control play -t 5
fi
sleep 2
fi

View File

@ -0,0 +1,18 @@
#!/bin/sh
tap_esc start -d /dev/ttyS4 -n 4
# Transition from previous non open-source flight stack
if param compare SYS_AUTOSTART 4001
then
param reset_all
tune_control play -t 4
sleep 2
if bl_update /etc/extras/bootloader.bin
then
tune_control play -t 3
else
tune_control play -t 5
fi
sleep 2
fi