Browse Source

Made ethstream reset a little easier.

git-svn-id: https://bucket.mit.edu/svn/nilm/acquisition/ethstream@7426 ddd99763-3ecb-0310-9145-efcb8ce7c51f
tags/ethstream-1.1
zacharyc 14 years ago
parent
commit
2e3f2f4b23
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      ethstream.c

+ 2
- 1
ethstream.c View File

@@ -424,6 +424,7 @@ nerdDoStream (const char *address, int *channel_list, int channel_count,
static int wasreset = 0;
getPacket command;
static unsigned short currentcount = 0;
tryagain:

//If this is the first time, set up acquisition
//Otherwise try to resume the previous one
@@ -465,7 +466,7 @@ nerdDoStream (const char *address, int *channel_list, int channel_count,
currentcount = 0;
started = 0;
wasreset = 1;
goto out;
goto tryagain;
} else if(retval < 0) {
info ("Failed to send SETC command\n");
goto out;


Loading…
Cancel
Save