From 4904ff698d4187b49b960ff54bd714ee81893ba8 Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Sun, 7 Dec 2008 23:02:27 -0800 Subject: [PATCH] Let fw_read_cycle_timer() use the local fd instead of requiring iso to be initialized Signed-off-by: Dan Dennedy --- src/fw-iso.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fw-iso.c b/src/fw-iso.c index 1022ebf..a696ba1 100644 --- a/src/fw-iso.c +++ b/src/fw-iso.c @@ -539,7 +539,7 @@ int fw_read_cycle_timer(fw_handle_t handle, int err; 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) { *cycle_timer = ctr.cycle_timer; *local_time = ctr.local_time;