Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
multipass
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Show more breadcrumbs
derf
multipass
Commits
e4e58080
Unverified
Commit
e4e58080
authored
3 years ago
by
Birte Kristina Friesel
Browse files
Options
Downloads
Patches
Plain Diff
max44006: remove unused red, green, blue, clear, ir class variables
parent
edf4fd02
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/driver/max44006.h
+1
-3
1 addition, 3 deletions
include/driver/max44006.h
src/driver/max44006.cc
+8
-0
8 additions, 0 deletions
src/driver/max44006.cc
with
9 additions
and
3 deletions
include/driver/max44006.h
+
1
−
3
View file @
e4e58080
...
...
@@ -63,9 +63,7 @@ class MAX44006 {
unsigned
char
txbuf
[
2
];
unsigned
char
rxbuf
[
10
];
AmbientConfig
ambientConfig
;
uint16_t
clear
,
red
,
green
,
blue
,
ir
;
unsigned
char
ambientConfig
;
public
:
...
...
This diff is collapsed.
Click to expand it.
src/driver/max44006.cc
+
8
−
0
View file @
e4e58080
...
...
@@ -59,6 +59,14 @@ uint16_t MAX44006::getTemperature()
return
0
;
}
/*
* 13543 counts @ ~21c
* 13660 counts @ ~30c
* 14280 counts @ ~48c
* -> approx 27 counts / degc
* -> approx 12970 counts @ 0c
*/
// independent of AMBPGA setting, depends on AMBTIM
return
(((
uint16_t
)
rxbuf
[
0
]
<<
8
)
+
rxbuf
[
1
]);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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