Skip to content

Commit

Permalink
fixed where getSizeInWords was not provided with the _use_8_bit_path_…
Browse files Browse the repository at this point in the history
…segments boolean
  • Loading branch information
janandries committed Jun 23, 2021
1 parent b8d7831 commit 9b6e59a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cip/EPath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ namespace cip {
return _attributeId;
}

CipUsint EPath::getSizeInWords() const {
CipUsint EPath::getSizeInWords(bool use_8_bit_path_segments) const {
if (use_8_bit_path_segments) {
return _size;
}
Expand Down
2 changes: 1 addition & 1 deletion src/cip/EPath.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace cip {
CipUint getClassId() const;
CipUint getObjectId() const;
CipUint getAttributeId() const;
CipUsint getSizeInWords() const;
CipUsint getSizeInWords(bool use_8_bit_path_segments=false) const;

std::string toString() const;
bool operator==(const EPath& other) const;
Expand Down
2 changes: 1 addition & 1 deletion src/cip/MessageRouterRequest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace cip {
std::vector<uint8_t> MessageRouterRequest::pack() const {
Buffer buffer;
buffer << _serviceCode
<< _ePath.getSizeInWords()
<< _ePath.getSizeInWords(_use_8_bit_path_segments)
<< _ePath.packPaddedPath(_use_8_bit_path_segments)
<< _data;

Expand Down

0 comments on commit 9b6e59a

Please sign in to comment.