Skip to content

Commit db712b0

Browse files
authored
Merge pull request #15 from Sensirion/fix_tx_frame
fix bug in ShdlcTxFrame
2 parents 387ef88 + ed14153 commit db712b0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ and this project adheres to `Semantic Versioning <https://semver.org/spec/v2.0.0
99
`Unreleased`_
1010
-------------
1111

12+
- Fix bug in SensirionShdlcTxFrame::begin that caused communication timeouts.
13+
1214
`0.7.2`_ 2025-11-04
1315
-------------------
1416

src/SensirionShdlcTxFrame.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
uint16_t SensirionShdlcTxFrame::begin(uint8_t command, uint8_t address,
4040
uint8_t dataLength) {
4141
_index = 0; // sets the index to point towards the start of the buffer.
42-
_buffer[_index] = 0x7e;
42+
_buffer[_index++] = 0x7e;
4343
uint16_t error = addUInt8(address);
4444
error |= addUInt8(command);
4545
error |= addUInt8(dataLength);

0 commit comments

Comments
 (0)