Merge git://github.com/libdivecomputer/libdivecomputer into NG-test
This commit is contained in:
commit
b5f53eeb1f
17
contrib/udev/libdivecomputer.rules
Normal file
17
contrib/udev/libdivecomputer.rules
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# Atomic Aquatics Cobalt
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="0471", ATTR{idProduct}=="0888", GROUP="plugdev"
|
||||||
|
|
||||||
|
# Suunto EON Steel
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="1493", ATTR{idProduct}=="0030", GROUP="plugdev"
|
||||||
|
|
||||||
|
# Suunto EON Core
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="1493", ATTR{idProduct}=="0033", GROUP="plugdev"
|
||||||
|
|
||||||
|
# Scubapro G2
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="2e6c", ATTR{idProduct}=="3201", GROUP="plugdev"
|
||||||
|
|
||||||
|
# Scubapro G2 Console
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="2e6c", ATTR{idProduct}=="3211", GROUP="plugdev"
|
||||||
|
|
||||||
|
# Scubapro Aladin Square
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="c251", ATTR{idProduct}=="2006", GROUP="plugdev"
|
||||||
@ -212,7 +212,7 @@ hw_ostc3_read (hw_ostc3_device_t *device, dc_event_progress_t *progress, unsigne
|
|||||||
device->offset += length;
|
device->offset += length;
|
||||||
} else {
|
} else {
|
||||||
// Read the packet.
|
// Read the packet.
|
||||||
rc = dc_iostream_write (device->iostream, data + nbytes, length, NULL);
|
rc = dc_iostream_read (device->iostream, data + nbytes, length, NULL);
|
||||||
if (rc != DC_STATUS_SUCCESS)
|
if (rc != DC_STATUS_SUCCESS)
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user