lint
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user