Browse Source

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
tags/ethstream-1.1
zacharyc 15 years ago
parent
commit
1a2ed51d0c
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      ethstream.c

+ 2
- 0
ethstream.c View File

@@ -363,6 +363,8 @@ int nerdDoStream(const char *address, int *channel_list, int channel_count, int
char command[14];
static unsigned short currentcount = 0;

usleep(1000000);

if(first_call) {
if (nerd_generate_command(command, channel_list, channel_count, precision, period) < 0) {
info("Failed to create configuration command\n");


Loading…
Cancel
Save