Let fw_read_cycle_timer() use the local fd instead of requiring iso to be initialized
Signed-off-by: Dan Dennedy <dan@dennedy.org>
This commit is contained in:
parent
fbe1fa46c6
commit
4904ff698d
|
@ -539,7 +539,7 @@ int fw_read_cycle_timer(fw_handle_t handle,
|
||||||
int err;
|
int err;
|
||||||
struct fw_cdev_get_cycle_timer ctr = { 0 };
|
struct fw_cdev_get_cycle_timer ctr = { 0 };
|
||||||
|
|
||||||
err = ioctl(handle->iso.fd, FW_CDEV_IOC_GET_CYCLE_TIMER, &ctr);
|
err = ioctl(handle->local_fd, FW_CDEV_IOC_GET_CYCLE_TIMER, &ctr);
|
||||||
if (!err) {
|
if (!err) {
|
||||||
*cycle_timer = ctr.cycle_timer;
|
*cycle_timer = ctr.cycle_timer;
|
||||||
*local_time = ctr.local_time;
|
*local_time = ctr.local_time;
|
||||||
|
|
Reference in New Issue