rename RESULT_IN_ESC to RESULT_CONTINUE

This commit is contained in:
john30
2015-12-26 11:58:04 +01:00
parent 4a3e5bbe33
commit b2ea470ec0
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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";
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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);