fix handleWrapCan() for simulator
This commit is contained in:
parent
fc733e4e04
commit
a02327ce4c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue