Skip to content
Snippets Groups Projects
Commit d4bfb0f0 authored by Alexandre Abadie's avatar Alexandre Abadie
Browse files

sys/phydat: add counts unit

parent 2b670788
No related branches found
No related tags found
No related merge requests found
...@@ -101,6 +101,7 @@ enum { ...@@ -101,6 +101,7 @@ enum {
UNIT_CD, /**< Candela */ UNIT_CD, /**< Candela */
/* logical */ /* logical */
UNIT_BOOL, /**< boolean value [0|1] */ UNIT_BOOL, /**< boolean value [0|1] */
UNIT_CTS, /**< counts */
UNIT_PERCENT, /**< out of 100 */ UNIT_PERCENT, /**< out of 100 */
UNIT_PERMILL, /**< out of 1000 */ UNIT_PERMILL, /**< out of 1000 */
UNIT_PPM, /**< part per million */ UNIT_PPM, /**< part per million */
......
...@@ -98,6 +98,7 @@ const char *phydat_unit_to_str(uint8_t unit) ...@@ -98,6 +98,7 @@ const char *phydat_unit_to_str(uint8_t unit)
case UNIT_PPB: return "ppb"; case UNIT_PPB: return "ppb";
case UNIT_CD: return "cd"; case UNIT_CD: return "cd";
case UNIT_PERCENT: return "%"; case UNIT_PERCENT: return "%";
case UNIT_CTS: return "cts";
default: return ""; default: return "";
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment