1
0
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:
Michel Rottleuthner 2020-02-03 17:16:53 +01:00
parent 46091b6b43
commit 36fca364f8
2 changed files with 5 additions and 1 deletions

View File

@ -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 */
};

View File

@ -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 "";
}
}