code style

This commit is contained in:
john30
2017-12-26 14:27:44 +01:00
parent 631f05ab3f
commit b0e20b7c7c
7 changed files with 19 additions and 11 deletions
+2 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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];
+1 -1
View File
@@ -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) {