This instance will be upgraded to Heptapod 0.31.0 (final) on 2022-05-24 at 14:00 UTC+2 (a few minutes of down time)

Commit 5cea2ce0 authored by alex@thinkpad's avatar alex@thinkpad
Browse files

close_liveview: also handle the "paused" LiveView state

--HG--
branch : lua_fix
parent 9645d9e82946
...@@ -314,11 +314,6 @@ function test_camera_gui() ...@@ -314,11 +314,6 @@ function test_camera_gui()
end end
end end
if lv.paused then
printf("Resume LiveView...\n");
lv.resume()
end
lv.stop() lv.stop()
assert(not lv.enabled) assert(not lv.enabled)
......
...@@ -244,6 +244,11 @@ void force_liveview() ...@@ -244,6 +244,11 @@ void force_liveview()
void close_liveview() void close_liveview()
{ {
if (lv_paused)
{
ResumeLiveView();
}
if (lv) if (lv)
#ifdef CONFIG_EOSM #ifdef CONFIG_EOSM
{ {
......
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