1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/phydat: Add capacitance unit (F)

This commit is contained in:
Leandro Lanzieri 2019-02-15 13:33:46 +01:00
parent 85e75cf9f8
commit afeb5c1e04
2 changed files with 2 additions and 0 deletions

View File

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

View File

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