From: Ruben Kerkhof Date: Sun, 24 Jul 2016 11:24:54 +0000 (+0200) Subject: ted plugin: 0xAA doesn't fit in a signed char X-Git-Tag: collectd-5.6.0~180 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3bd130cd884aed95e669f0e21530de08ee897f0d;p=collectd.git ted plugin: 0xAA doesn't fit in a signed char --- 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;