master/canopen.c
changeset 90 044e97bce4bd
parent 89 e91ef35c36db
child 91 0120d6214948
equal deleted inserted replaced
89:e91ef35c36db 90:044e97bce4bd
    57     }
    57     }
    58 
    58 
    59     ec_frame_init_npwr(&frame, master, slave->station_address,
    59     ec_frame_init_npwr(&frame, master, slave->station_address,
    60                        0x1800, 0xF6, data);
    60                        0x1800, 0xF6, data);
    61 
    61 
    62     if (unlikely(ec_frame_send_receive(&frame) < 0)) {
    62     if (unlikely(ec_frame_send_receive(&frame))) {
    63         EC_ERR("Mailbox sending failed on slave %i!\n", slave->ring_position);
    63         EC_ERR("Mailbox sending failed on slave %i!\n", slave->ring_position);
    64         return -1;
    64         return -1;
    65     }
    65     }
    66 
    66 
    67     // Read "written bit" of Sync-Manager
    67     // Read "written bit" of Sync-Manager