Skip to content

Commit

Permalink
VE.Direct: remove unused mStop member variable
Browse files Browse the repository at this point in the history
  • Loading branch information
schlimmchen committed Sep 4, 2023
1 parent 53290af commit 77ad53f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions lib/VeDirectFrameHandler/VeDirectFrameHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ class Silent : public Print {
static Silent MessageOutputDummy;

VeDirectFrameHandler::VeDirectFrameHandler() :
//mStop(false), // don't know what Victron uses this for, not using
_msgOut(&MessageOutputDummy),
_state(IDLE),
_checksum(0),
Expand Down Expand Up @@ -133,7 +132,6 @@ void VeDirectFrameHandler::rxData(uint8_t inbyte)
_msgOut->println("[VE.Direct] ERROR: debug buffer overrun!");
}

//if (mStop) return;
if ( (inbyte == ':') && (_state != CHECKSUM) ) {
_prevState = _state; //hex frame can interrupt TEXT
_state = RECORD_HEX;
Expand Down Expand Up @@ -764,4 +762,4 @@ String VeDirectFrameHandler::getMpptAsString(uint8_t mppt)
strMPPT = mppt;
}
return strMPPT;
}
}
1 change: 0 additions & 1 deletion lib/VeDirectFrameHandler/VeDirectFrameHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ class VeDirectFrameHandler {
void frameEndEvent(bool); // copy temp struct to public struct
int hexRxEvent(uint8_t);

//bool mStop; // not sure what Victron uses this for, not using
Print* _msgOut;
bool _verboseLogging;
int _state; // current state
Expand Down

0 comments on commit 77ad53f

Please sign in to comment.