altelch / iso-tp

ISO 15765-2 TP implementation for Arduino
GNU General Public License v3.0
82 stars 42 forks source link

Messages with blocksize > 16 #6

Closed gurgelmb closed 3 years ago

gurgelmb commented 5 years ago

when try to transmit messages with blocksize higher then 16 it failes, because it waits for fc frame which will never come. Change line 378 in iso-tp.cpp to:

if (msg->blocksize < 16) msg->seq_id %= 16; else msg->seq_id %= msg->blocksize;

brandonros commented 3 years ago

lol this needs to be PR'd to master. it's a deadlock otherwise