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

sys/phydat: Added unit Coulomb

This commit is contained in:
Marian Buschsieweke 2018-07-31 13:42:17 +02:00
parent d180339e5a
commit cc0e6dc779
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F
2 changed files with 2 additions and 0 deletions

View File

@ -95,6 +95,7 @@ enum {
UNIT_V, /**< Volts */
UNIT_GS, /**< gauss */
UNIT_DBM, /**< decibel-milliwatts */
UNIT_COULOMB, /**< coulomb */
/* pressure */
UNIT_BAR, /**< Beer? */
UNIT_PA, /**< Pascal */

View File

@ -101,6 +101,7 @@ const char *phydat_unit_to_str(uint8_t unit)
case UNIT_CD: return "cd";
case UNIT_PERCENT: return "%";
case UNIT_CTS: return "cts";
case UNIT_COULOMB: return "C";
default: return "";
}
}