From 4d7322a223259accee2b62a129885a3bf23f049d Mon Sep 17 00:00:00 2001 From: Lee Ballard Date: Wed, 25 Sep 2019 12:31:53 -0500 Subject: [PATCH] send_cmd always logs sent 0x00 to controller --- aq_programmer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aq_programmer.c b/aq_programmer.c index 407612fa..cf56560e 100644 --- a/aq_programmer.c +++ b/aq_programmer.c @@ -2229,7 +2229,7 @@ bool send_cmd(unsigned char cmd) } } if (ret) { - LOG(PROG_LOG, LOG_INFO, "sent '0x%02hhx' to controller\n", _pgm_command); + LOG(PROG_LOG, LOG_INFO, "sent '0x%02hhx' to controller\n", cmd); } pthread_mutex_unlock(&_pgm_command_mutex); return ret;