From 035648f634448331cc93af393ffbb70cc05daf34 Mon Sep 17 00:00:00 2001 From: "alex@thinkpad" Date: Fri, 25 Sep 2020 20:06:38 +0200 Subject: [PATCH] Shutdown: fixed crash on 5D2, 500D, possibly also 50D --HG-- branch : lua_fix --- src/tasks.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tasks.c b/src/tasks.c index b836e3d4b..bd67fcb1b 100644 --- a/src/tasks.c +++ b/src/tasks.c @@ -372,7 +372,7 @@ MENU_UPDATE_FUNC(tasks_print) static void leds_on() { _card_led_on(); - info_led_on(); + //info_led_on(); /* crashes on 5D2, 500D, possibly also 50D */ delayed_call(20, leds_on, 0); } @@ -404,6 +404,7 @@ PROP_HANDLER(PROP_TERMINATE_SHUT_REQ) if (buf[0] == 0) { /* keep the LEDs on until shutdown completes */ + info_led_on(); delayed_call(20, leds_on, 0); ml_shutdown(); @@ -418,6 +419,7 @@ PROP_HANDLER(PROP_ABORT) if (buf[0] == 1) { /* keep the LEDs on until shutdown completes */ + info_led_on(); delayed_call(20, leds_on, 0); #if defined(CONFIG_MODULES) -- GitLab