Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
cm-projects
RIOT
Commits
61dc1920
Commit
61dc1920
authored
6 years ago
by
Michel Rottleuthner
Browse files
Options
Downloads
Patches
Plain Diff
sys/phydat: add unit for mass concentration (g/m^3)
parent
6cffa07e
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
sys/include/phydat.h
+3
-1
3 additions, 1 deletion
sys/include/phydat.h
sys/phydat/phydat_str.c
+1
-0
1 addition, 0 deletions
sys/phydat/phydat_str.c
with
4 additions
and
1 deletion
sys/include/phydat.h
+
3
−
1
View file @
61dc1920
...
...
@@ -110,7 +110,9 @@ enum {
UNIT_PPB
,
/**< part per billion */
/* aggregate values */
UNIT_TIME
,
/**< the three dimensions contain sec, min, and hours */
UNIT_DATE
/**< the 3 dimensions contain days, months and years */
UNIT_DATE
,
/**< the 3 dimensions contain days, months and years */
/* mass concentration */
UNIT_GPM3
/**< grams per cubic meters */
/* extend this list as needed */
};
...
...
This diff is collapsed.
Click to expand it.
sys/phydat/phydat_str.c
+
1
−
0
View file @
61dc1920
...
...
@@ -102,6 +102,7 @@ const char *phydat_unit_to_str(uint8_t unit)
case
UNIT_PERCENT
:
return
"%"
;
case
UNIT_CTS
:
return
"cts"
;
case
UNIT_COULOMB
:
return
"C"
;
case
UNIT_GPM3
:
return
"g/m^3"
;
default:
return
""
;
}
}
...
...
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