projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
micropeak is code complete now.
[fw/altos]
/
libaltos
/
libaltos.c
diff --git
a/libaltos/libaltos.c
b/libaltos/libaltos.c
index d7b266cf08936f23abd1a18003b26c4cc0f9012e..6e884c80ea145eeb576955d7d703f6a43f2d94af 100644
(file)
--- a/
libaltos/libaltos.c
+++ b/
libaltos/libaltos.c
@@
-116,6
+116,7
@@
altos_open(struct altos_device *device)
return NULL;
}
return NULL;
}
+ printf ("open\n");
// altos_set_last_error(12, "yeah yeah, failed again");
// free(file);
// return NULL;
// altos_set_last_error(12, "yeah yeah, failed again");
// free(file);
// return NULL;
@@
-148,6
+149,8
@@
altos_open(struct altos_device *device)
return NULL;
}
cfmakeraw(&term);
return NULL;
}
cfmakeraw(&term);
+ cfsetospeed(&term, B9600);
+ cfsetispeed(&term, B9600);
#ifdef USE_POLL
term.c_cc[VMIN] = 1;
term.c_cc[VTIME] = 0;
#ifdef USE_POLL
term.c_cc[VMIN] = 1;
term.c_cc[VTIME] = 0;
@@
-609,6
+612,7
@@
altos_list_next(struct altos_list *list, struct altos_device *device)
{
struct altos_usbdev *dev;
if (list->current >= list->ndev) {
{
struct altos_usbdev *dev;
if (list->current >= list->ndev) {
+ printf ("end\n");
return 0;
}
dev = list->dev[list->current];
return 0;
}
dev = list->dev[list->current];