Git
Wiki
Site
projects
/
soft
/
lpc122x
/
core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39d0c7a
)
Change the lenght value, not the address of the pointer to the length value
author
Nathael Pajani
<nathael.pajani@ed3l.fr>
Sat, 16 Mar 2019 16:30:52 +0000
(17:30 +0100)
committer
Nathael Pajani
<nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:05 +0000
(17:03 +0100)
lib/protocols/mqtt.c
patch
|
blob
|
history
diff --git
a/lib/protocols/mqtt.c
b/lib/protocols/mqtt.c
index
6a6cef7
..
cec954c
100644
(file)
--- a/
lib/protocols/mqtt.c
+++ b/
lib/protocols/mqtt.c
@@
-78,7
+78,7
@@
static int decode_remaining_length(uint8_t* buf, uint32_t* length)
int idx = 0;
do {
- length += (buf[idx] & 0x7F) << (7 * idx);
+
*
length += (buf[idx] & 0x7F) << (7 * idx);
} while ((buf[idx++] & 0x80) && (idx <= 3));
return idx;
Techno-Innov
42 impasse de la Combe du Bois
01150 Blyes - France
contact@techno-innov.fr
Design et hébergement du site :
Techno-Innov
Techno-Innov
- SARL Coopérative
539 169 417 RCS Bourg-en-Bresse
Ce site n'utilise pas de cookies, désolé pour les gourmands !