fix for non-default unsigned char
This commit is contained in:
@@ -409,7 +409,7 @@ void SingleDataField::dump(ostream& output)
|
||||
result_t SingleDataField::read(const PartType partType,
|
||||
SymbolString& data, unsigned char offset,
|
||||
ostringstream& output, bool leadingSeparator,
|
||||
bool verbose, const char* fieldName, char fieldIndex,
|
||||
bool verbose, const char* fieldName, signed char fieldIndex,
|
||||
char separator)
|
||||
{
|
||||
if (partType != m_partType)
|
||||
@@ -1196,7 +1196,7 @@ void DataFieldSet::dump(ostream& output)
|
||||
result_t DataFieldSet::read(const PartType partType,
|
||||
SymbolString& data, unsigned char offset,
|
||||
ostringstream& output, bool leadingSeparator,
|
||||
bool verbose, const char* fieldName, char fieldIndex,
|
||||
bool verbose, const char* fieldName, signed char fieldIndex,
|
||||
char separator)
|
||||
{
|
||||
bool previousFullByteOffset = true, found = false, findFieldIndex = fieldName != NULL && fieldIndex >= 0;
|
||||
|
||||
+3
-3
@@ -217,7 +217,7 @@ public:
|
||||
virtual result_t read(const PartType partType,
|
||||
SymbolString& data, unsigned char offset,
|
||||
ostringstream& output, bool leadingSeparator=false,
|
||||
bool verbose=false, const char* fieldName=NULL, char fieldIndex=-1,
|
||||
bool verbose=false, const char* fieldName=NULL, signed char fieldIndex=-1,
|
||||
char separator=UI_FIELD_SEPARATOR) = 0;
|
||||
|
||||
/**
|
||||
@@ -309,7 +309,7 @@ public:
|
||||
virtual result_t read(const PartType partType,
|
||||
SymbolString& data, unsigned char offset,
|
||||
ostringstream& output, bool leadingSeparator=false,
|
||||
bool verbose=false, const char* fieldName=NULL, char fieldIndex=-1,
|
||||
bool verbose=false, const char* fieldName=NULL, signed char fieldIndex=-1,
|
||||
char separator=UI_FIELD_SEPARATOR);
|
||||
|
||||
// @copydoc
|
||||
@@ -641,7 +641,7 @@ public:
|
||||
virtual result_t read(const PartType partType,
|
||||
SymbolString& data, unsigned char offset,
|
||||
ostringstream& output, bool leadingSeparator=false,
|
||||
bool verbose=false, const char* fieldName=NULL, char fieldIndex=-1,
|
||||
bool verbose=false, const char* fieldName=NULL, signed char fieldIndex=-1,
|
||||
char separator=UI_FIELD_SEPARATOR);
|
||||
|
||||
// @copydoc
|
||||
|
||||
@@ -313,7 +313,7 @@ result_t Message::prepareSlave(SymbolString& slaveData)
|
||||
|
||||
result_t Message::decode(const PartType partType, SymbolString& data,
|
||||
ostringstream& output, bool leadingSeparator,
|
||||
bool verbose, const char* fieldName, char fieldIndex,
|
||||
bool verbose, const char* fieldName, signed char fieldIndex,
|
||||
char separator)
|
||||
{
|
||||
unsigned char offset;
|
||||
|
||||
@@ -190,7 +190,7 @@ public:
|
||||
*/
|
||||
result_t decode(const PartType partType, SymbolString& data,
|
||||
ostringstream& output, bool leadingSeparator=false,
|
||||
bool verbose=false, const char* fieldName=NULL, char fieldIndex=-1,
|
||||
bool verbose=false, const char* fieldName=NULL, signed char fieldIndex=-1,
|
||||
char separator=UI_FIELD_SEPARATOR);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user