remove debug
git-svn-id: https://bucket.mit.edu/svn/nilm/zoom@7615 ddd99763-3ecb-0310-9145-efcb8ce7c51f
This commit is contained in:
parent
8b458e5d20
commit
a5f712b651
13
pc/USB1-115200.ini
Normal file
13
pc/USB1-115200.ini
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
define \%P /dev/ttyUSB1
|
||||||
|
define \%B 115200
|
||||||
|
|
||||||
|
set line \%P
|
||||||
|
if failure { echo "Couldn't open \%P" , exit }
|
||||||
|
set carrier-watch off
|
||||||
|
set flow-control none
|
||||||
|
set speed \%B
|
||||||
|
set serial 8n1
|
||||||
|
set key \127 \8
|
||||||
|
log session /tmp/session.log
|
||||||
|
connect
|
||||||
|
quit
|
|
@ -63,7 +63,6 @@ double keithley_read(int fd)
|
||||||
gputv("++read", NAN);
|
gputv("++read", NAN);
|
||||||
if (fdgets(s, 128, fd, 2000) == NULL)
|
if (fdgets(s, 128, fd, 2000) == NULL)
|
||||||
return NAN;
|
return NAN;
|
||||||
printf("%s\n", s);
|
|
||||||
if (sscanf(s, "%lf,%lf,", &dummy, &i) != 2)
|
if (sscanf(s, "%lf,%lf,", &dummy, &i) != 2)
|
||||||
return NAN;
|
return NAN;
|
||||||
return i;
|
return i;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user