fix handleWrapCan() for simulator

This commit is contained in:
andreika-git 2023-09-27 18:36:00 +03:00 committed by rusefillc
parent fc733e4e04
commit a02327ce4c
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ CANDriver* detectCanDevice(brain_pin_e pinRx, brain_pin_e pinTx) {
static uint8_t wrapOutBuffer[BLOCKING_FACTOR + 100];
void handleWrapCan(TsChannelBase* tsChannel) {
int size = minI(txCanBuffer.getSize(), BLOCKING_FACTOR / sizeof(CANTxFrame));
int size = minI(txCanBuffer.getCount(), BLOCKING_FACTOR / sizeof(CANTxFrame));
memcpy(wrapOutBuffer, &size, 2);
int outputSize = 2;