Skip to content

Commit

Permalink
better loop variable
Browse files Browse the repository at this point in the history
  • Loading branch information
john30 committed Dec 26, 2023
1 parent 2aee1f6 commit 115ef29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/ebus/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ void EnhancedCharDevice::notifyInfoRetrieved() {
case 0x0302:
stream << (id == 1 ? "ID" : "config");
stream << hex << setfill('0');
for (uint8_t pos = 0; pos < len; pos++) {
for (size_t pos = 0; pos < len; pos++) {
stream << " " << setw(2) << static_cast<unsigned>(data[pos]);
}
if (id == 2 && (data[2]&0x3f) != 0x3f) {
Expand Down

0 comments on commit 115ef29

Please sign in to comment.