From cdc311957b6c1fbe68a88ed3a44fefa4a9037605 Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Sun, 11 Sep 2016 19:18:19 +0200 Subject: [PATCH] analog: use correct unit for dBm/dBV --- include/libsigrok/libsigrok.h | 2 +- src/analog.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/libsigrok/libsigrok.h b/include/libsigrok/libsigrok.h index 8151e53a..e1320124 100644 --- a/include/libsigrok/libsigrok.h +++ b/include/libsigrok/libsigrok.h @@ -263,7 +263,7 @@ enum sr_unit { SR_UNIT_SIEMENS, /** * An absolute measurement of power, in decibels, referenced to - * 1 milliwatt (dBu). + * 1 milliwatt (dBm). */ SR_UNIT_DECIBEL_MW, /** Voltage in decibel, referenced to 1 volt (dBV). */ diff --git a/src/analog.c b/src/analog.c index e2966875..a8ca3bce 100644 --- a/src/analog.c +++ b/src/analog.c @@ -63,8 +63,8 @@ static struct unit_mq_string unit_strings[] = { { SR_UNIT_BOOLEAN, "" }, { SR_UNIT_SECOND, "s" }, { SR_UNIT_SIEMENS, "S" }, - { SR_UNIT_DECIBEL_MW, "dBu" }, - { SR_UNIT_DECIBEL_VOLT, "dBv" }, + { SR_UNIT_DECIBEL_MW, "dBm" }, + { SR_UNIT_DECIBEL_VOLT, "dBV" }, { SR_UNIT_UNITLESS, "" }, { SR_UNIT_DECIBEL_SPL, "dB" }, { SR_UNIT_CONCENTRATION, "ppm" },