Skip to content

Commit

Permalink
Update SensirionShdlcTxFrame.cpp
Browse files Browse the repository at this point in the history
the begin function sets the index to 0.
  • Loading branch information
Guswib authored Nov 2, 2024
1 parent 3acad86 commit 451d4eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SensirionShdlcTxFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

uint16_t SensirionShdlcTxFrame::begin(uint8_t command, uint8_t address,
uint8_t dataLength) {
_index=0;
_index=0; //sets the index to point towards the start of the buffer.
_buffer[_index] = 0x7e;
uint16_t error = addUInt8(address);
error |= addUInt8(command);
Expand Down

0 comments on commit 451d4eb

Please sign in to comment.