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
This commit is contained in:
parent
679b4ef64f
commit
1a2ed51d0c
|
@ -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");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user