diff --git a/sys/include/phydat.h b/sys/include/phydat.h index b94aecb8a4bc2b361b059d3a36fe12d9ec40b3fb..946a9337039fdb1113a8d7fea8c201cb67dbae1a 100644 --- a/sys/include/phydat.h +++ b/sys/include/phydat.h @@ -101,6 +101,7 @@ enum { UNIT_CD, /**< Candela */ /* logical */ UNIT_BOOL, /**< boolean value [0|1] */ + UNIT_CTS, /**< counts */ UNIT_PERCENT, /**< out of 100 */ UNIT_PERMILL, /**< out of 1000 */ UNIT_PPM, /**< part per million */ diff --git a/sys/phydat/phydat_str.c b/sys/phydat/phydat_str.c index 7d5755c35dbe3a9d0647029a7dcafc8022c2004f..a10fd7aee64a80e2a07d133e2a259c29c9bd4506 100644 --- a/sys/phydat/phydat_str.c +++ b/sys/phydat/phydat_str.c @@ -98,6 +98,7 @@ const char *phydat_unit_to_str(uint8_t unit) case UNIT_PPB: return "ppb"; case UNIT_CD: return "cd"; case UNIT_PERCENT: return "%"; + case UNIT_CTS: return "cts"; default: return ""; } }