Skip to content

Commit 0c127fd

Browse files
committed
Use more readable m_paramCount initialization
1 parent 3630fe5 commit 0c127fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CmdParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ uint16_t CmdParser::parseCmd(uint8_t *buffer, size_t bufferSize)
2121
bool isString = false;
2222

2323
// init param count
24-
m_paramCount ^= m_paramCount;
24+
m_paramCount = 0;
2525

2626
// buffer is not okay
2727
if (buffer == NULL || bufferSize == 0) {

0 commit comments

Comments
 (0)