From 3bd130cd884aed95e669f0e21530de08ee897f0d Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sun, 24 Jul 2016 13:24:54 +0200 Subject: [PATCH] ted plugin: 0xAA doesn't fit in a signed char --- src/ted.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ted.c b/src/ted.c index 37ab85dd..186cf2b4 100644 --- a/src/ted.c +++ b/src/ted.c @@ -70,7 +70,7 @@ static int ted_read_value(double *ret_power, double *ret_voltage) { unsigned char receive_buffer[300]; unsigned char package_buffer[300]; - char pkt_request[1] = {0xAA}; + unsigned char pkt_request[1] = {0xAA}; int package_buffer_pos; fd_set input; -- 2.30.2