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_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 */
|
/* 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 */
|
/* 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_GPM3: return "g/m^3";
|
||||||
case UNIT_F: return "F";
|
case UNIT_F: return "F";
|
||||||
case UNIT_PH: return "pH";
|
case UNIT_PH: return "pH";
|
||||||
|
case UNIT_CPM3: return "#/m^3";
|
||||||
|
|
||||||
default: return "";
|
default: return "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user