Commit 1a2ed51d by zacharyc

Added one second sleep in code to let nerdjack recover from previous run


git-svn-id: https://bucket.mit.edu/svn/nilm/acquisition/ethstream@7274 ddd99763-3ecb-0310-9145-efcb8ce7c51f
parent 679b4ef6
Showing with 2 additions and 0 deletions
...@@ -363,6 +363,8 @@ int nerdDoStream(const char *address, int *channel_list, int channel_count, int ...@@ -363,6 +363,8 @@ int nerdDoStream(const char *address, int *channel_list, int channel_count, int
char command[14]; char command[14];
static unsigned short currentcount = 0; static unsigned short currentcount = 0;
usleep(1000000);
if(first_call) { if(first_call) {
if (nerd_generate_command(command, channel_list, channel_count, precision, period) < 0) { if (nerd_generate_command(command, channel_list, channel_count, precision, period) < 0) {
info("Failed to create configuration command\n"); info("Failed to create configuration command\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment