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

sys/phydat: add ohm as unit

This commit is contained in:
Gunar Schorcht 2020-02-27 17:07:15 +01:00
parent 2338944a1c
commit 558322bc6f
2 changed files with 2 additions and 0 deletions

View File

@ -99,6 +99,7 @@ enum {
UNIT_DBM, /**< decibel-milliwatts */
UNIT_COULOMB, /**< coulomb */
UNIT_F, /**< Farad */
UNIT_OHM, /**< Ohm */
/* electrochemical */
UNIT_PH, /**< pH */
/* pressure */

View File

@ -127,6 +127,7 @@ const char *phydat_unit_to_str(uint8_t unit)
case UNIT_F: return "F";
case UNIT_PH: return "pH";
case UNIT_CPM3: return "#/m^3";
case UNIT_OHM: return "ohm";
default: return "";
}