From 495c42c9d96a48cb9d6434e808284cf62014ebc1 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Wed, 13 Dec 2017 00:05:24 +0100 Subject: [PATCH] main: remote_trigger on open-count changes --- kernel/sy_old/mars_main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kernel/sy_old/mars_main.c b/kernel/sy_old/mars_main.c index 03df6527..6762d56a 100644 --- a/kernel/sy_old/mars_main.c +++ b/kernel/sy_old/mars_main.c @@ -580,6 +580,7 @@ struct mars_rotate { int relevant_serial; int replay_code; int avoid_count; + int old_open_count; bool has_symlinks; bool is_attached; bool res_shutdown; @@ -4177,6 +4178,11 @@ done: rot->if_brick && !rot->if_brick->power.led_off; _show_primary(rot, parent); + if (open_count != rot->old_open_count) { + rot->old_open_count = open_count; + mars_remote_trigger(); + } + err: return status; }