Skip to content

Commit db768eb

Browse files
committed
Apply linter
1 parent 4132c43 commit db768eb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

components/victron/victron.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ void VictronComponent::loop() {
165165
if (c == '\r' || c == '\n') {
166166
// a hex frame ends with '\n' and has its own checksum; prepare to receive another text frame
167167
state_ = 0;
168-
checksum_ = 0;
168+
checksum_ = 0;
169169
}
170170
}
171171
}
@@ -747,11 +747,11 @@ void VictronComponent::publish_frame_() {
747747
return;
748748
}
749749
this->last_publish_ = now;
750-
751-
size_t last = 0;
752-
size_t next = 0;
750+
751+
size_t last = 0;
752+
size_t next = 0;
753753
while ((next = frame_buffer_.find("\r\n", last)) != std::string::npos) {
754-
std::string item = frame_buffer_.substr(last, next-last);
754+
std::string item = frame_buffer_.substr(last, next - last);
755755
last = next + 2;
756756
if (item.size() == 0) {
757757
continue;

0 commit comments

Comments
 (0)