Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Vladislav Rykov
gateway_protocol
Commits
03462de3
Commit
03462de3
authored
Apr 16, 2020
by
vladislav
Browse files
bugs fixes
parent
7a7face2
Changes
1
Show whitespace changes
Inline
Side-by-side
gateway_protocol/gateway_protocol.c
View file @
03462de3
...
@@ -61,7 +61,7 @@ uint8_t gateway_protocol_packet_decode (
...
@@ -61,7 +61,7 @@ uint8_t gateway_protocol_packet_decode (
memcpy
(
payload
,
&
packet
[
p_len
],
*
payload_length
);
memcpy
(
payload
,
&
packet
[
p_len
],
*
payload_length
);
p_len
+=
*
payload_length
;
p_len
+=
*
payload_length
;
return
(
memcmp
(
appkey
,
app_key
,
GATEWAY_PROTOCOL_APP_KEY_SIZE
)
&&
return
(
!
memcmp
(
appkey
,
app_key
,
GATEWAY_PROTOCOL_APP_KEY_SIZE
)
&&
dev
==
dev_id
&&
dev
==
dev_id
&&
p_len
==
packet_length
);
p_len
==
packet_length
);
}
}
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment