Commit c81d372d by zacharyc

Made commands fixed width


git-svn-id: https://bucket.mit.edu/svn/nilm/acquisition/ethstream@7220 ddd99763-3ecb-0310-9145-efcb8ce7c51f
parent 407a91c7
Showing with 2 additions and 2 deletions
......@@ -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) {
......
......@@ -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;
......
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