rename RESULT_IN_ESC to RESULT_CONTINUE
This commit is contained in:
@@ -24,7 +24,7 @@ using namespace std;
|
||||
const char* getResultCode(result_t resultCode) {
|
||||
switch (resultCode) {
|
||||
case RESULT_OK: return "done";
|
||||
case RESULT_IN_ESC: return "escape sequence received";
|
||||
case RESULT_CONTINUE: return "continue";
|
||||
case RESULT_EMPTY: return "empty";
|
||||
case RESULT_ERR_GENERIC_IO: return "ERR: generic I/O error";
|
||||
case RESULT_ERR_DEVICE: return "ERR: generic device error";
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
enum result_t {
|
||||
RESULT_OK = 0, //!< success
|
||||
|
||||
RESULT_IN_ESC = 1, //!< start of escape sequence received
|
||||
RESULT_CONTINUE = 1, //!< more input data is needed (e.g. start of escape sequence received)
|
||||
RESULT_EMPTY = 2, //!< empty result
|
||||
|
||||
RESULT_ERR_GENERIC_IO = -1, //!< generic I/O error (usually fatal)
|
||||
|
||||
@@ -175,7 +175,7 @@ result_t SymbolString::push_back(const unsigned char value, const bool isEscaped
|
||||
addCRC(value);
|
||||
|
||||
m_unescapeState = 2;
|
||||
return RESULT_IN_ESC;
|
||||
return RESULT_CONTINUE;
|
||||
}
|
||||
if (updateCRC)
|
||||
addCRC(value);
|
||||
|
||||
Reference in New Issue
Block a user