From: Aurelien Jacobs Date: Sun, 11 Sep 2016 17:18:19 +0000 (+0200) Subject: analog: use correct unit for dBm/dBV X-Git-Tag: libsigrok-0.5.0~203 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=cdc311957b6c1fbe68a88ed3a44fefa4a9037605;p=libsigrok.git analog: use correct unit for dBm/dBV --- 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" },