Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
openMMC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
openMMC
Commits
02b8e82d
Commit
02b8e82d
authored
Feb 22, 2016
by
Henrique Silva
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor changes on INA220 configuration
parent
3805583a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ina220.c
modules/sensors/ina220.c
+2
-2
No files found.
modules/sensors/ina220.c
View file @
02b8e82d
...
...
@@ -110,7 +110,7 @@ void vTaskINA220( void *Parameters )
uint8_t
ina220_config
(
uint8_t
i2c_id
,
t_ina220_data
*
data
)
{
uint8_t
i2c_bus
=
I2C1
;
uint8_t
i2c_bus
;
data
->
config
=
&
ina220_cfg
;
data
->
i2c_id
=
i2c_id
;
...
...
@@ -122,7 +122,7 @@ uint8_t ina220_config(uint8_t i2c_id, t_ina220_data * data)
data
->
curr_reg_config
=
data
->
config
->
config_reg_default
;
/* @todo Change to 'i2c_take_by_chipid', which is more generic */
if
(
i2c_take_by_busid
(
I2C_BUS_CPU_ID
,
&
(
i2c_bus
),
(
TickType_t
)
10
0
)
==
pdFALSE
)
{
if
(
i2c_take_by_busid
(
I2C_BUS_CPU_ID
,
&
(
i2c_bus
),
(
TickType_t
)
10
)
==
pdFALSE
)
{
return
-
1
;
}
...
...
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