This commit is contained in:
John
2023-11-11 10:30:29 +01:00
parent 15de49cab1
commit a7d6eedf30
+4 -3
View File
@@ -289,7 +289,10 @@ result_t FileDevice::sendSequence(SequenceId id, const uint8_t* data, size_t len
len--; len--;
} }
// DEBUG_RAW_TRAFFIC("enhanced > %2.2x %2.2x", buf[0], buf[1]); // DEBUG_RAW_TRAFFIC("enhanced > %2.2x %2.2x", buf[0], buf[1]);
if (::write(m_fd, m_sendBuf, pos) == pos) { ssize_t sent = ::write(m_fd, m_sendBuf, pos);
if (sent < 0 || static_cast<unsigned>(sent) != pos) {
return RESULT_ERR_DEVICE;
}
if (id == sid_info) { if (id == sid_info) {
m_infoLen = 1; m_infoLen = 1;
m_infoPos = 1; m_infoPos = 1;
@@ -297,8 +300,6 @@ result_t FileDevice::sendSequence(SequenceId id, const uint8_t* data, size_t len
} }
return RESULT_OK; return RESULT_OK;
} }
return RESULT_ERR_DEVICE;
}
string FileDevice::getEnhancedInfos() { string FileDevice::getEnhancedInfos() {
if (!m_enhancedLevel || m_extraFatures == 0) { if (!m_enhancedLevel || m_extraFatures == 0) {