1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 22:43:50 +01:00

Merge pull request #5517 from aabadie/saul_luminosity

sys/phydat: adding luminosity unit (Lux)
This commit is contained in:
Martine Lenders 2016-06-06 11:38:54 +02:00
commit a7d7b1188d
2 changed files with 3 additions and 0 deletions

View File

@ -79,6 +79,8 @@ enum {
UNIT_TEMP_C, /**< degree Celsius */
UNIT_TEMP_F, /**< degree Fahrenheit */
UNIT_TEMP_K, /**< Kelvin */
/* illuminance */
UNIT_LUX, /**< Lux (lx) */
/* dimension */
UNIT_M, /**< meters */
UNIT_M2, /**< square meters */

View File

@ -62,6 +62,7 @@ const char *phydat_unit_to_str(uint8_t unit)
case UNIT_TEMP_C: return "°C";
case UNIT_TEMP_F: return "°F";
case UNIT_TEMP_K: return "K";
case UNIT_LUX: return "lx";
case UNIT_M: return "m";
case UNIT_G: return "g";
case UNIT_DPS: return "dps";