Skip to content

Commit

Permalink
unindent code
Browse files Browse the repository at this point in the history
  • Loading branch information
schlimmchen committed Oct 30, 2024
1 parent 70a726b commit 484b73a
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/JbdBmsController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,7 @@ void Controller::rxData(uint8_t inbyte)
if (_dataLength == 0) {
return setReadState(ReadState::DataContentReceived);
}
else {
return setReadState(ReadState::ReadingDataContent);
}
return setReadState(ReadState::ReadingDataContent);
break;
case ReadState::ReadingDataContent:
_dataLength--;
Expand All @@ -217,11 +215,9 @@ void Controller::rxData(uint8_t inbyte)
if (inbyte == SerialMessage::endMarker) {
return frameComplete();
}
else {
MessageOutput.printf("[JBD BMS] Invalid Frame: end marker not found.");
MessageOutput.println();
return reset();
}
MessageOutput.printf("[JBD BMS] Invalid Frame: end marker not found.");
MessageOutput.println();
return reset();
break;
}
reset();
Expand Down

0 comments on commit 484b73a

Please sign in to comment.