summaryrefslogtreecommitdiff
path: root/pigs.c
diff options
context:
space:
mode:
Diffstat (limited to 'pigs.c')
-rw-r--r--pigs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pigs.c b/pigs.c
index 0d0f44e..928afa3 100644
--- a/pigs.c
+++ b/pigs.c
@@ -26,7 +26,7 @@ For more information, please refer to <http://unlicense.org/>
*/
/*
-This version is for pigpio version 67+
+This version is for pigpio version 69+
*/
#include <stdio.h>
@@ -233,8 +233,9 @@ void print_result(int sock, int rv, cmdCmd_t cmd)
*/
if (r < 0)
{
- printf("%d", r);
+ printf("%d\n", r);
report(PIGS_SCRIPT_ERR, "ERROR: %s", cmdErrStr(r));
+ break;
}
p = (uint32_t *)response_buf;