Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Donald Chen
pc-ble-driver-sd_api_v6
Commits
e8008613
Commit
e8008613
authored
Nov 28, 2017
by
Chun Fan
Browse files
Remove unnecessary headers
parent
e66008ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sd_api_v2/sdk/components/serialization/application/codecs/s130/serializers/conn_systemreset.c
View file @
e8008613
...
...
@@ -35,30 +35,21 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <stdlib.h>
#include <string.h>
#include "ble_app.h"
#include "ble_serialization.h"
#include "ble_struct_serialization.h"
#include "cond_field_serialization.h"
#include "app_util.h"
uint32_t
conn_systemreset_enc
(
uint8_t
*
const
p_buf
,
uint32_t
*
const
p_buf_len
)
uint32_t
conn_systemreset_enc
(
uint8_t
*
const
p_buf
,
uint32_t
*
const
p_buf_len
)
{
uint32_t
index
=
0
;
uint32_t
err_code
=
NRF_SUCCESS
;
uint32_t
index
=
0
;
SER_ASSERT_NOT_NULL
(
p_buf
);
SER_ASSERT_NOT_NULL
(
p_buf_len
);
SER_ASSERT_LENGTH_LEQ
(
index
+
2
,
*
p_buf_len
);
p_buf
[
index
++
]
=
CONN_SYSTEMRESET
;
*
p_buf_len
=
index
;
return
err_code
;
return
NRF_SUCCESS
;
}
Write
Preview
Markdown
is supported
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