Skip to content

Commit

Permalink
Tolerate excess bytes in picture graphic raw data when deserializing …
Browse files Browse the repository at this point in the history
…IOPs
  • Loading branch information
ad3154 committed Oct 9, 2024
1 parent a757178 commit f7a4b3e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion isobus/src/isobus_virtual_terminal_objects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6338,7 +6338,10 @@ namespace isobus

void PictureGraphic::add_raw_data(std::uint8_t dataByte)
{
rawData.push_back(dataByte);
if (rawData.size() < (get_actual_width() * get_actual_height()))
{
rawData.push_back(dataByte);
}
}

std::uint32_t PictureGraphic::get_number_of_bytes_in_raw_data() const
Expand Down

0 comments on commit f7a4b3e

Please sign in to comment.