summaryrefslogtreecommitdiff
path: root/libaltos/libaltos.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-01-01 15:30:11 -0800
committerKeith Packard <keithp@keithp.com>2013-01-01 15:30:11 -0800
commitd83587c3c66b730cc54ca153714eee520ee40b2c (patch)
treef3f77de67c0e918a8681f39a793235be0a66fc50 /libaltos/libaltos.c
parent65b512c890a3ccf487655b79305ab1cfcf49259c (diff)
micropeak is code complete now.
Added save and download functionality. Removed 'new' from file menu. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'libaltos/libaltos.c')
-rw-r--r--libaltos/libaltos.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libaltos/libaltos.c b/libaltos/libaltos.c
index d7b266cf..6e884c80 100644
--- a/libaltos/libaltos.c
+++ b/libaltos/libaltos.c
@@ -116,6 +116,7 @@ altos_open(struct altos_device *device)
return NULL;
}
+ printf ("open\n");
// 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);
+ cfsetospeed(&term, B9600);
+ cfsetispeed(&term, B9600);
#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) {
+ printf ("end\n");
return 0;
}
dev = list->dev[list->current];