1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

sys/phydat: add counts unit

This commit is contained in:
Alexandre Abadie 2017-06-20 11:03:56 +02:00
parent 2b67078896
commit d4bfb0f0a3
2 changed files with 2 additions and 0 deletions

View File

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

View File

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