Denis V. Dedkov hace 1 año
padre
commit
3084eb8dd3
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/libusbdevice.cpp

+ 1 - 0
src/libusbdevice.cpp

@@ -39,6 +39,7 @@ bool LibUsbDevice::sendDataToDevice(const Data &data)
 {
     if (!m_device) {
         std::cerr << "Device not opened" << std::endl;
+        return false;
     }
 
     auto requestType = LIBUSB_ENDPOINT_OUT | LIBUSB_REQUEST_TYPE_CLASS | LIBUSB_RECIPIENT_INTERFACE;