mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
sys/phydat: add unit for count per cubic meter
This commit is contained in:
parent
46091b6b43
commit
36fca364f8
@ -117,7 +117,9 @@ enum {
|
||||
UNIT_TIME, /**< the three dimensions contain sec, min, and hours */
|
||||
UNIT_DATE, /**< the 3 dimensions contain days, months and years */
|
||||
/* mass concentration */
|
||||
UNIT_GPM3 /**< grams per cubic meters */
|
||||
UNIT_GPM3, /**< grams per cubic meter */
|
||||
/* number concentration */
|
||||
UNIT_CPM3 /**< count per cubic meter */
|
||||
/* extend this list as needed */
|
||||
};
|
||||
|
||||
|
@ -106,6 +106,8 @@ const char *phydat_unit_to_str(uint8_t unit)
|
||||
case UNIT_GPM3: return "g/m^3";
|
||||
case UNIT_F: return "F";
|
||||
case UNIT_PH: return "pH";
|
||||
case UNIT_CPM3: return "#/m^3";
|
||||
|
||||
default: return "";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user