mirror of
https://github.com/schoebel/mars
synced 2024-12-15 03:05:12 +00:00
light: fix start of initial sync in weird cases
This commit is contained in:
parent
4d1bbdef5a
commit
c474f7ca17
@ -3327,7 +3327,8 @@ static int make_sync(void *buf, struct mars_dent *dent)
|
||||
/* Disallow contemporary sync & logfile_apply
|
||||
*/
|
||||
if (do_start &&
|
||||
(!rot->trans_brick || !rot->trans_brick->power.led_off)) {
|
||||
rot->trans_brick &&
|
||||
!rot->trans_brick->power.led_off) {
|
||||
MARS_INF("cannot start sync because logger is working\n");
|
||||
do_start = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user