Skip to content

Commit

Permalink
allow setting default lower bits of large values
Browse files Browse the repository at this point in the history
The objd value member is 32 bits; it cannot set the upper bits but
could be useful to set the lower bits of values larger than 32 bits.
  • Loading branch information
hefloryd committed Jul 11, 2019
1 parent 9cc5836 commit f16daf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion soes/esc_coe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,7 @@ void COE_initDefaultValues (void)
i = 0;
do
{
if (objd[i].data != NULL && objd[i].bitlength <= sizeof(objd[i].value))
if (objd[i].data != NULL)
{
COE_setValue (&objd[i], objd[i].value);
DPRINT ("%04x:%02x = %x\n", SDOobjects[n].index, objd[i].subindex, objd[i].value);
Expand Down

0 comments on commit f16daf2

Please # to comment.