mirror of https://github.com/schoebel/mars
main: remote_trigger on open-count changes
This commit is contained in:
parent
c8788a28cb
commit
495c42c9d9
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue