Legacy API can receive CAN now

This commit is contained in:
Paul Hollinsky
2018-10-08 21:43:32 -04:00
parent b3471890eb
commit ba9813021e
11 changed files with 142 additions and 42 deletions
+2 -1
View File
@@ -15,7 +15,8 @@ bool ICommunication::read(std::vector<uint8_t>& bytes, size_t limit) {
size_t actuallyRead = readQueue.try_dequeue_bulk(bytes.data(), limit);
bytes.resize(actuallyRead);
if(bytes.size() > actuallyRead)
bytes.resize(actuallyRead);
return true;
}