projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version 1.9.10.1
[fw/altos]
/
libaltos
/
libaltos_posix.c
diff --git
a/libaltos/libaltos_posix.c
b/libaltos/libaltos_posix.c
index 731e9aa14ce3b45913769457dbc991b8016c8e76..97eedd3be084dcae1a9c9962644bdbd58bdcf7cd 100644
(file)
--- a/
libaltos/libaltos_posix.c
+++ b/
libaltos/libaltos_posix.c
@@
-3,7
+3,8
@@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
@@
-199,3
+200,11
@@
altos_fill(struct altos_file *file_common, int timeout)
return 0;
}
return 0;
}
+#include <time.h>
+
+void
+altos_pause_one_second(void)
+{
+ struct timespec delay = { .tv_sec = 1, .tv_nsec = 0 };
+ nanosleep(&delay, NULL);
+}