code style
This commit is contained in:
@@ -658,7 +658,8 @@ bool SingleDataField::hasFullByteOffset(bool after) const {
|
||||
}
|
||||
|
||||
size_t SingleDataField::getCount(PartType partType, const char* fieldName) const {
|
||||
return isIgnored() || (partType != pt_any && partType != m_partType) || (fieldName != NULL && m_name != fieldName) ? 0 : 1;
|
||||
return isIgnored() || (partType != pt_any && partType != m_partType) || (fieldName != NULL && m_name != fieldName)
|
||||
? 0 : 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -279,7 +279,7 @@ result_t NetworkDevice::open() {
|
||||
return RESULT_ERR_GENERIC_IO;
|
||||
}
|
||||
if (!m_udp) {
|
||||
usleep(25000); // wait 25ms for potential initial garbage
|
||||
usleep(25000); // wait 25ms for potential initial garbage
|
||||
}
|
||||
int cnt;
|
||||
symbol_t buf[MTU];
|
||||
|
||||
@@ -747,7 +747,7 @@ result_t Message::decodeLastData(bool leadingSeparator, const char* fieldName,
|
||||
fieldIndex -= m_data->getCount(pt_masterData, fieldName);
|
||||
if (fieldIndex < 0) {
|
||||
skipSlaveData = true;
|
||||
fieldIndex = 0;
|
||||
fieldIndex = 0;
|
||||
}
|
||||
}
|
||||
if (!skipSlaveData) {
|
||||
|
||||
Reference in New Issue
Block a user