Added workaround for async screenshots.
All checks were successful
Run test asserts / Test-Asserts (push) Successful in 18s

This commit is contained in:
Willem Cazander 2024-07-14 14:38:32 +02:00
parent ef798ffe5c
commit 48de748ae8
2 changed files with 17 additions and 9 deletions

View file

@ -32,7 +32,15 @@ proc night_flight_save_screenshot {{prefix_id 0}} {
} else {
set file_prefix "$night_flight_prefix$night_flight_seperator"
}
screenshot -prefix $file_prefix
global throttle
global speed
set old_throttle [set throttle]
set old_speed [set speed]
set throttle on
set speed 100
after time 1 "screenshot -prefix $file_prefix"
after time 2 "set throttle $old_throttle"
after time 2 "set speed $old_speed"
return "mb::save flight screenshot"
}