Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DIOT Monitoring Module
Manage
Activity
Members
Labels
Plan
Issues
6
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
DIOT Monitoring Module
Commits
e0dff0d4
Commit
e0dff0d4
authored
3 years ago
by
Christos Gentsos
Browse files
Options
Downloads
Patches
Plain Diff
Main: make it clear that this is a const structure
parent
2f248bbf
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
main_fw/src/i2c_impl.c
+1
-1
1 addition, 1 deletion
main_fw/src/i2c_impl.c
with
1 addition
and
1 deletion
main_fw/src/i2c_impl.c
+
1
−
1
View file @
e0dff0d4
...
...
@@ -117,7 +117,7 @@ static const int8_t cmd_data_lengths[] = {
// only block write-block read process calls modify the length
static
int8_t
cmd_data_length_query
=
-
1
;
static
cmd_t
cmds_cmds
[]
=
(
cmd_t
[]){
static
const
cmd_t
cmds_cmds
[]
=
(
cmd_t
[]){
{
0x00
,
(
int8_t
*
)
&
cmd_data_lengths
[
0
],
(
uint8_t
*
)
&
page_tmp
,
(
fp_t
)
NULL
,
&
page_chk
,
(
fp_t
)
NULL
,
QUERY_WR
|
QUERY_RD
|
QUERY_FMT_8B
,
0
},
{
0x1A
,
(
int8_t
*
)
&
cmd_data_length_query
,
(
uint8_t
*
)
&
query_r
,
(
fp_t
)
NULL
,
&
query_prp
,
(
fp_t
)
NULL
,
QUERY_SUP
,
1
},
{
0x78
,
(
int8_t
*
)
&
cmd_data_lengths
[
2
],
(
uint8_t
*
)
&
status_b
,
(
fp_t
)
NULL
,
(
fp_t
)
NULL
,
&
read_status_b
,
QUERY_RD
,
0
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment