Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anders Blomdell
LabComm
Commits
68cb6c1f
Commit
68cb6c1f
authored
Nov 21, 2014
by
Sven Gestegård Robertz
Browse files
packet length is excluding tag, fixed for version packet
parent
e40986a2
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/c/labcomm_encoder.c
View file @
68cb6c1f
...
@@ -64,8 +64,12 @@ struct labcomm_encoder *labcomm_encoder_new(
...
@@ -64,8 +64,12 @@ struct labcomm_encoder *labcomm_encoder_new(
result
->
writer
->
action_context
,
result
->
writer
->
action_context
,
LABCOMM_VERSION
,
NULL
,
CURRENT_VERSION
);
LABCOMM_VERSION
,
NULL
,
CURRENT_VERSION
);
labcomm_write_packed32
(
result
->
writer
,
LABCOMM_VERSION
);
labcomm_write_packed32
(
result
->
writer
,
LABCOMM_VERSION
);
#ifdef LENGTH_INCL_TAG
length
=
(
labcomm_size_packed32
(
LABCOMM_VERSION
)
+
length
=
(
labcomm_size_packed32
(
LABCOMM_VERSION
)
+
labcomm_size_string
(
CURRENT_VERSION
));
labcomm_size_string
(
CURRENT_VERSION
));
#else
length
=
labcomm_size_string
(
CURRENT_VERSION
);
#endif
labcomm_write_packed32
(
result
->
writer
,
length
);
labcomm_write_packed32
(
result
->
writer
,
length
);
labcomm_write_string
(
result
->
writer
,
CURRENT_VERSION
);
labcomm_write_string
(
result
->
writer
,
CURRENT_VERSION
);
labcomm_writer_end
(
result
->
writer
,
result
->
writer
->
action_context
);
labcomm_writer_end
(
result
->
writer
,
result
->
writer
->
action_context
);
...
...
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