File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -486,7 +486,7 @@ namespace kickcat
486
486
487
487
auto process = [pi_frame](DatagramHeader const *, uint8_t const * data, uint16_t wkc)
488
488
{
489
- if (wkc != pi_frame.inputs .size ())
489
+ if (wkc != ( pi_frame.inputs .size () + pi_frame. outputs . size () * 2 ))
490
490
{
491
491
DEBUG_PRINT (" Invalid working counter\n " );
492
492
return DatagramState::INVALID_WKC;
Original file line number Diff line number Diff line change @@ -322,7 +322,7 @@ TEST_F(BusTest, logical_cmd)
322
322
logical_write = 0x1716151413121110 ;
323
323
std::memcpy (slave.output .data , &logical_write, sizeof (int64_t ));
324
324
checkSendFrame (Command::LRW, logical_write);
325
- handleReply<int64_t >({logical_read});
325
+ handleReply<int64_t >({logical_read}, 3 );
326
326
bus.processDataReadWrite ([](DatagramState const &){});
327
327
328
328
for (int i = 0 ; i < 8 ; ++i)
You can’t perform that action at this time.
0 commit comments