Skip to content

Commit

Permalink
CiA301 Standard expects all (8) bytes to be sent
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Petersen committed Sep 28, 2021
1 parent 3435c23 commit 7fc7afd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sdo/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ func (download Download) Do(bus *can.Bus) error {
download.ObjectIndex.SubIndex,
}

// CiA301 Standard expects all (8) bytes to be sent
for len(data) < 4 {
data = append(data, 0x0)
}

// Initiate
frame := canopen.Frame{
CobID: download.RequestCobID,
Expand Down

0 comments on commit 7fc7afd

Please sign in to comment.