master/master.c
branchredundancy
changeset 2301 01e4381ebd09
parent 2300 70b15347c707
child 2305 668bdb89879b
equal deleted inserted replaced
2300:70b15347c707 2301:01e4381ebd09
   560     master->send_cb = ec_master_internal_send_cb;
   560     master->send_cb = ec_master_internal_send_cb;
   561     master->receive_cb = ec_master_internal_receive_cb;
   561     master->receive_cb = ec_master_internal_receive_cb;
   562     master->cb_data = master;
   562     master->cb_data = master;
   563 
   563 
   564     master->phase = EC_IDLE;
   564     master->phase = EC_IDLE;
       
   565 
       
   566     // reset number of responding slaves to trigger scanning
       
   567     master->fsm.slaves_responding = 0;
       
   568 
   565     ret = ec_master_thread_start(master, ec_master_idle_thread,
   569     ret = ec_master_thread_start(master, ec_master_idle_thread,
   566             "EtherCAT-IDLE");
   570             "EtherCAT-IDLE");
   567     if (ret)
   571     if (ret)
   568         master->phase = EC_ORPHANED;
   572         master->phase = EC_ORPHANED;
   569 
   573