Skip to content

Commit

Permalink
Made no ACK error print to stderr instead of stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
bytesnz committed Nov 8, 2017
1 parent 0e7306f commit e939f56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Initial version written by Joe Jaworski (http://www.joejaworski.com/weather/)
Additions made by Jack Farley (https://github.com/bytesnz/wproweather)

```
vproweather v1.3.4
vproweather v1.3.5
https://github.com/bytesnz/vproweather
Original work by Joe Jaworski http://www.joejaworski.com/weather/
Expand Down
4 changes: 2 additions & 2 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#include "dhandler.h"
#include "byte.h"

#define VERSION "1.3.4"
#define VERSION "1.3.5"

/* local Data */
static char szttyDevice[255]; /* Serial device string */
Expand Down Expand Up @@ -775,7 +775,7 @@ int runCommand(char* command, int commandLength, int expectedLength, char* dataL
/* Check received an ACK */
if (expectingAck) {
if (szSerBuffer[0] != ACK) {
printf("Didn't get ACK from weather station\n");
fprintf(stderr, "Didn't get ACK from weather station (got %d bytes)\n", nCnt);
return -1;
} else if (bVerbose) {
printf("Get ACK reply to command\n");
Expand Down

0 comments on commit e939f56

Please sign in to comment.