BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mangoh-drivers
Project
Overview
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
mangoh-drivers
Commits
0315072f
Commit
0315072f
authored
Mar 04, 2019
by
David Frey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add in some logs for the MCP9700A
The temperatures being read back are higher than expected. Add some logs until the issue is resolved.
parent
b09f9ad9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
mcp9700aOnWp.c
...700aTemperatureSensor/Mcp9700aAppComponent/mcp9700aOnWp.c
+11
-1
No files found.
apps/Mcp9700aTemperatureSensor/Mcp9700aAppComponent/mcp9700aOnWp.c
View file @
0315072f
...
@@ -4,7 +4,16 @@
...
@@ -4,7 +4,16 @@
static
int
WpAdcFunction
(
int32_t
*
valueUv
)
static
int
WpAdcFunction
(
int32_t
*
valueUv
)
{
{
return
le_adc_ReadValue
(
"EXT_ADC0"
,
valueUv
);
int32_t
valueMv
;
le_result_t
res
=
le_adc_ReadValue
(
"EXT_ADC0"
,
&
valueMv
);
if
(
res
==
LE_OK
)
{
*
valueUv
=
valueMv
*
1000
;
}
LE_DEBUG
(
"Read %d uV from the ADC during ambient temperature measurement"
,
*
valueUv
);
return
res
;
}
}
le_result_t
mangOH_ambientTemperature_Read
(
double
*
temperature
)
le_result_t
mangOH_ambientTemperature_Read
(
double
*
temperature
)
...
@@ -17,6 +26,7 @@ le_result_t mangOH_ambientTemperature_Read(double *temperature)
...
@@ -17,6 +26,7 @@ le_result_t mangOH_ambientTemperature_Read(double *temperature)
}
}
*
temperature
=
tempInt
/
1000
.
0
;
*
temperature
=
tempInt
/
1000
.
0
;
LE_DEBUG
(
"Read ambient temperature %f C"
,
*
temperature
);
return
LE_OK
;
return
LE_OK
;
}
}
...
...
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