Code

ted plugin: 0xAA doesn't fit in a signed char
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 24 Jul 2016 11:24:54 +0000 (13:24 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 24 Jul 2016 11:25:30 +0000 (13:25 +0200)
src/ted.c

index 37ab85dd02e863834e054c167e22ad92ee0240d6..186cf2b4bb1399b32fcfcbf3f585fe3b6539a715 100644 (file)
--- 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;