1
0
Fork 0

Merge pull request #320 from Maldus512/master

Fixed bug with RPDO CANrxData buffer indexing
This commit is contained in:
Janez 2021-07-22 07:18:28 +02:00 committed by GitHub
commit 84487ef6ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -811,7 +811,7 @@ void CO_RPDO_process(CO_RPDO_t *RPDO,
bool_t rpdoReceived = false;
while (CO_FLAG_READ(RPDO->CANrxNew[bufNo])) {
rpdoReceived = true;
uint8_t *dataRPDO = &RPDO->CANrxData[0][bufNo];
uint8_t *dataRPDO = RPDO->CANrxData[bufNo];
/* Clear the flag. If between the copy operation CANrxNew is set
* by receive thread, then copy the latest data again. */