projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libaltos: Map generic windows device names to actual names
[fw/altos]
/
libaltos
/
libaltos_common.c
diff --git
a/libaltos/libaltos_common.c
b/libaltos/libaltos_common.c
index 6f0cbe6137d898ce2998de3628eb46213cd78575..fb8c314e3ae1b5f233d605090bbed39147f8a8e2 100644
(file)
--- a/
libaltos/libaltos_common.c
+++ b/
libaltos/libaltos_common.c
@@
-117,16
+117,12
@@
int altos_bt_port(struct altos_bt_device *device) {
return BT_PORT_DEFAULT;
}
return BT_PORT_DEFAULT;
}
-#include <time.h>
-
PUBLIC void
altos_free(struct altos_file *file)
{
int i;
altos_close(file);
PUBLIC void
altos_free(struct altos_file *file)
{
int i;
altos_close(file);
- for (i = 0; i < 10 && file->busy; i++) {
- struct timespec delay = { .tv_sec = 1, .tv_nsec = 0 };
- nanosleep(&delay, NULL);
- }
+ for (i = 0; i < 10 && file->busy; i++)
+ altos_pause_one_second();
free(file);
}
free(file);
}