solved todo
This commit is contained in:
@@ -63,7 +63,7 @@ bool Device::isValid()
|
|||||||
ssize_t Device::sendBytes(const unsigned char* buffer, size_t nbytes)
|
ssize_t Device::sendBytes(const unsigned char* buffer, size_t nbytes)
|
||||||
{
|
{
|
||||||
if (isValid() == false)
|
if (isValid() == false)
|
||||||
return -1; // TODO RESULT_ERR_DEVICE
|
return RESULT_ERR_DEVICE;
|
||||||
|
|
||||||
// write bytes to device
|
// write bytes to device
|
||||||
return write(m_fd, buffer, nbytes);
|
return write(m_fd, buffer, nbytes);
|
||||||
|
|||||||
Reference in New Issue
Block a user