projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71fbc51
)
ted plugin: 0xAA doesn't fit in a signed char
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sun, 24 Jul 2016 11:24:54 +0000
(13:24 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sun, 24 Jul 2016 11:25:30 +0000
(13:25 +0200)
src/ted.c
patch
|
blob
|
history
diff --git
a/src/ted.c
b/src/ted.c
index
37ab85d
..
186cf2b
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;