Skip to content

Commit

Permalink
Merge pull request #10 from common/fix/17_cycle_shift_signed
Browse files Browse the repository at this point in the history
fix: making cycle_shift unsigned
  • Loading branch information
robert-burger authored and GitHub Enterprise committed Apr 23, 2024
2 parents 10279eb + 7381bfe commit c0ee5df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/libethercat/slave.h
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ void ec_slave_add_init_cmd(ec_t *pec, osal_uint16_t slave, ec_init_cmd_t *cmd);
*/
void ec_slave_set_dc_config(struct ec *pec, osal_uint16_t slave,
int use_dc, int type, osal_uint32_t cycle_time_0,
osal_uint32_t cycle_time_1, osal_uint32_t cycle_shift);
osal_uint32_t cycle_time_1, osal_int32_t cycle_shift);

//! Adds master EoE settings.
/*!
Expand Down
2 changes: 1 addition & 1 deletion src/slave.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ void ec_slave_add_init_cmd(ec_t *pec, osal_uint16_t slave, ec_init_cmd_t *cmd)
// Set Distributed Clocks config to slave
void ec_slave_set_dc_config(struct ec *pec, osal_uint16_t slave,
int use_dc, int type, osal_uint32_t cycle_time_0,
osal_uint32_t cycle_time_1, osal_uint32_t cycle_shift)
osal_uint32_t cycle_time_1, osal_int32_t cycle_shift)
{
assert(pec != NULL);
assert(slave < pec->slave_cnt);
Expand Down

0 comments on commit c0ee5df

Please sign in to comment.