diff options
author | Daniel P. Berrange <dan@berrange.com> | 2014-06-04 18:08:46 +0000 |
---|---|---|
committer | Daniel P. Berrange <dan@berrange.com> | 2014-06-04 18:08:46 +0000 |
commit | 00953fd2d472b845eefb6a48ada4d922356f82e7 (patch) | |
tree | 263127fe0601f9fac0b3e17fe3c44e9dd5b5a210 /camlibs/enigma13 | |
parent | 76fa9a0da679d2a2667b229797b2c33fcd52584a (diff) | |
download | libgphoto2-00953fd2d472b845eefb6a48ada4d922356f82e7.tar.gz |
Remove mostly unused GP_SYSTEM_SLEEP macro
The GP_SYSTEM_SLEEP macro is only used in a small portion of
the codebase. Replace it with normal POSIX sleep/usleep
function calls.
Signed-off-by: Daniel P. Berrange <dan@berrange.com>
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14996 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/enigma13')
-rw-r--r-- | camlibs/enigma13/enigma13.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/camlibs/enigma13/enigma13.c b/camlibs/enigma13/enigma13.c index 68e489710..627ef2a4f 100644 --- a/camlibs/enigma13/enigma13.c +++ b/camlibs/enigma13/enigma13.c @@ -201,7 +201,7 @@ static int enigma13_get_toc(Camera *camera, int *filecount, char** toc) response, 0x0001, NULL, 0x0000)); /* Wait until cam is ready to send the T.O.C */ - GP_SYSTEM_SLEEP(ENIGMA13_WAIT_TOC_DELAY_MS); + usleep(ENIGMA13_WAIT_TOC_DELAY_MS * 1000); CHECK (gp_port_usb_msg_read (camera->port, 0x21, 0x0000, 0x0000, @@ -278,7 +278,7 @@ static int enigma13_download_img(Camera *camera, char *toc, int index, char **im CHECK_AND_FREE (gp_port_usb_msg_write (camera->port, 0x54, index+1, 2, NULL, 0x00), buf); - GP_SYSTEM_SLEEP(ENIGMA13_WAIT_IMAGE_READY_MS); + usleep(ENIGMA13_WAIT_IMAGE_READY_MS * 1000); CHECK_AND_FREE (gp_port_usb_msg_read (camera->port, 0x21, 0x0000, 0x0000, |