update usb_write_sync as per new Lephe's USB driver request @dev
This commit is contained in:
parent
c9e7801f35
commit
05d84dcb4d
Binary file not shown.
Before Width: | Height: | Size: 18 KiB |
Binary file not shown.
Before Width: | Height: | Size: 14 KiB |
|
@ -105,11 +105,11 @@ static void hook_prefrag(int id, void *fragment, int size)
|
|||
sh.height = htole32(azrp_height);
|
||||
sh.pixel_format = htole32(USB_FXLINK_IMAGE_RGB565);
|
||||
|
||||
usb_write_sync(pipe, &h, sizeof h, 4, false);
|
||||
usb_write_sync(pipe, &sh, sizeof sh, 4, false);
|
||||
usb_write_sync(pipe, &h, sizeof h, false);
|
||||
usb_write_sync(pipe, &sh, sizeof sh, false);
|
||||
}
|
||||
|
||||
usb_write_sync(pipe, fragment, size, 4, false);
|
||||
usb_write_sync(pipe, fragment, size, false);
|
||||
|
||||
if(id == azrp_frag_count - 1) {
|
||||
usb_commit_sync(pipe);
|
||||
|
|
Loading…
Reference in New Issue