mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-09-21 09:33:47 +08:00
Fixed missing initialisation of allow_config flag.
This commit is contained in:
+5
-5
@@ -151,16 +151,18 @@ int ec_master_init(ec_master_t *master, /**< EtherCAT master */
|
||||
master->slave_count = 0;
|
||||
|
||||
INIT_LIST_HEAD(&master->configs);
|
||||
INIT_LIST_HEAD(&master->domains);
|
||||
|
||||
master->app_time = 0ULL;
|
||||
master->app_start_time = 0ULL;
|
||||
master->has_app_time = 0;
|
||||
#ifdef EC_HAVE_CYCLES
|
||||
master->dc_cycles_app_start_time = 0;
|
||||
#endif
|
||||
master->dc_jiffies_app_start_time = 0;
|
||||
master->app_start_time = 0ULL;
|
||||
master->has_app_time = 0;
|
||||
|
||||
master->scan_busy = 0;
|
||||
master->allow_scan = 1;
|
||||
ec_mutex_init(&master->scan_mutex);
|
||||
init_waitqueue_head(&master->scan_queue);
|
||||
|
||||
@@ -177,8 +179,6 @@ int ec_master_init(ec_master_t *master, /**< EtherCAT master */
|
||||
// send interval in IDLE phase
|
||||
ec_master_set_send_interval(master, 1000000 / HZ);
|
||||
|
||||
INIT_LIST_HEAD(&master->domains);
|
||||
|
||||
master->debug_level = debug_level;
|
||||
master->stats.timeouts = 0;
|
||||
master->stats.corrupted = 0;
|
||||
@@ -226,7 +226,7 @@ int ec_master_init(ec_master_t *master, /**< EtherCAT master */
|
||||
}
|
||||
|
||||
// create state machine object
|
||||
ec_mbox_init(&master->fsm_mbox,&master->fsm_datagram);
|
||||
ec_mbox_init(&master->fsm_mbox, &master->fsm_datagram);
|
||||
ec_fsm_master_init(&master->fsm, master, &master->fsm_datagram);
|
||||
|
||||
// init reference sync datagram
|
||||
|
||||
Reference in New Issue
Block a user