mirror of
https://github.com/OpenSolo/OpenSolo.git
synced 2025-04-29 22:24:32 +02:00
Artoo: SmartRTL on home button long hold
This commit is contained in:
parent
d875fbed16
commit
4fb5f151ea
@ -263,7 +263,7 @@ void FlightManager::onRtlButtonEvt(Button *b, Button::Event evt)
|
|||||||
|
|
||||||
Haptic::startPattern(Haptic::SingleMedium);
|
Haptic::startPattern(Haptic::SingleMedium);
|
||||||
}
|
}
|
||||||
} else if (evt == Button::HoldRelease) {
|
} else if (evt == Button::HoldRelease || evt == Button::LongHold) {
|
||||||
if (inFlight()) {
|
if (inFlight()) {
|
||||||
requestFlightModeChange(SMART_RTL);
|
requestFlightModeChange(SMART_RTL);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user