projects
/
trinked.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f0c5107
)
compiler warning fix
author
Charlie Root
<root@gringotts.local>
Mon, 4 Apr 2016 07:19:12 +0000
(10:19 +0300)
committer
Charlie Root
<root@gringotts.local>
Mon, 4 Apr 2016 07:19:12 +0000
(10:19 +0300)
trinket.c
patch
|
blob
|
history
diff --git
a/trinket.c
b/trinket.c
index
6ff5e4d
..
82822b3
100644
(file)
--- a/
trinket.c
+++ b/
trinket.c
@@
-174,7
+174,7
@@
trinketPing() {
}
if (r != sizeof(resp)) {
}
if (r != sizeof(resp)) {
- fprintf(stderr, "hid_read_timeout returns %d instead of %u\n", r, sizeof(resp));
+ fprintf(stderr, "hid_read_timeout returns %d instead of %u\n", r,
(unsigned int)
sizeof(resp));
return ERR_ERROR;
}
return ERR_ERROR;
}
@@
-247,7
+247,7
@@
trinketGetCumDose(double *value) {
}
if (r != sizeof(resp)) {
}
if (r != sizeof(resp)) {
- fprintf(stderr, "hid_read_timeout returns %d instead of %u\n", r, sizeof(resp));
+ fprintf(stderr, "hid_read_timeout returns %d instead of %u\n", r,
(unsigned int)
sizeof(resp));
return ERR_ERROR;
}
return ERR_ERROR;
}