Skip to content

Commit

Permalink
create Fixture::writePacket(vector) for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
doudou committed Aug 10, 2017
1 parent 70a29c1 commit 4702837
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Fixture.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ namespace iodrivers_base
return packet;
}

/** Write data to the driver */
void writePacket(std::vector<uint8_t> const& data)
{
writePacket(data.data(), data.size());
}

/** Write data to the driver */
void writePacket(uint8_t const* buffer, size_t size)
{
Expand Down

0 comments on commit 4702837

Please sign in to comment.