projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altoslib: Easy Motor v2 x axis is inverted
[fw/altos]
/
libaltos
/
cjnitest.c
diff --git
a/libaltos/cjnitest.c
b/libaltos/cjnitest.c
index 3a65c3d68b10cf8ffceda422ba0f93bf7aa8f551..7e857275b307a8dd69dcc879caf0423957452bd7 100644
(file)
--- a/
libaltos/cjnitest.c
+++ b/
libaltos/cjnitest.c
@@
-1,5
+1,9
@@
#include <stdio.h>
#include "libaltos.h"
#include <stdio.h>
#include "libaltos.h"
+#include <string.h>
+
+#define HAS_BLUETOOTH 1
+#define HAS_USB 1
static void
altos_puts(struct altos_file *file, char *string)
static void
altos_puts(struct altos_file *file, char *string)
@@
-19,6
+23,7
@@
main (int argc, char **argv)
struct altos_bt_list *bt_list;
altos_init();
struct altos_bt_list *bt_list;
altos_init();
+#if HAS_USB
list = altos_list_start();
while (altos_list_next(list, &device)) {
struct altos_file *file;
list = altos_list_start();
while (altos_list_next(list, &device)) {
struct altos_file *file;
@@
-42,6
+47,7
@@
main (int argc, char **argv)
altos_close(file);
}
altos_list_finish(list);
altos_close(file);
}
altos_list_finish(list);
+#endif
#if HAS_BLUETOOTH
bt_list = altos_bt_list_start(8);
while (altos_bt_list_next(bt_list, &bt_device)) {
#if HAS_BLUETOOTH
bt_list = altos_bt_list_start(8);
while (altos_bt_list_next(bt_list, &bt_device)) {