diff --git a/sys/include/phydat.h b/sys/include/phydat.h index e57a517c5436596b62e0d7a8e42242d1855282f6..d56f968ed187059ea440f23bd1fbb031a49e8356 100644 --- a/sys/include/phydat.h +++ b/sys/include/phydat.h @@ -96,6 +96,7 @@ enum { UNIT_GS, /**< gauss */ UNIT_DBM, /**< decibel-milliwatts */ UNIT_COULOMB, /**< coulomb */ + UNIT_F, /**< Farad */ /* pressure */ UNIT_BAR, /**< Beer? */ UNIT_PA, /**< Pascal */ diff --git a/sys/phydat/phydat_str.c b/sys/phydat/phydat_str.c index f450c9aa65938d9944ee41c23b2d2938073cb3e2..ff9e9ad8dcf0a057a768c1d18556d8e48512819a 100644 --- a/sys/phydat/phydat_str.c +++ b/sys/phydat/phydat_str.c @@ -103,6 +103,7 @@ const char *phydat_unit_to_str(uint8_t unit) case UNIT_CTS: return "cts"; case UNIT_COULOMB: return "C"; case UNIT_GPM3: return "g/m^3"; + case UNIT_F: return "F"; default: return ""; } }