Browse Source

Made commands fixed width

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

+ 1
- 1
ethstream.c View File

@@ -349,7 +349,7 @@ int nerdDoStream(const char *address, int *channel_list, int channel_count, int
int retval = -EAGAIN;
int fd_data;
static int first_call = 1;
char command[13];
char command[14];

if (nerd_generate_command(command, channel_list, channel_count, precision, period) < 0) {


+ 1
- 1
nerdjack.c View File

@@ -402,7 +402,7 @@ int nerd_generate_command(char * command, int * channel_list, int channel_count,
channelbit = channelbit | (0x1 << channel_list[i]);
}

sprintf(command,"GET%3.3X%d%5.5d", channelbit,precision,period);
sprintf(command,"GETD%3.3X%d%5.5d", channelbit,precision,period);
return 0;


Loading…
Cancel
Save