aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2017-01-16 11:44:22 +0100
committerAurelien Jacobs <aurel@gnuage.org>2017-01-22 19:03:29 +0100
commit841aadc95b918fd883d36c6c8555f8cb0e3cd049 (patch)
tree1ca0def135420a0775c772e8b2bdef618906e51b
parent35bb2fcef95d23bda27c5b3ec3a014d4e1c22713 (diff)
libsigrok.h: Add SR_MQ_HARMONIC_RATIO.
-rw-r--r--include/libsigrok/libsigrok.h2
-rw-r--r--src/hwdriver.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/include/libsigrok/libsigrok.h b/include/libsigrok/libsigrok.h
index e132012..e03fedc 100644
--- a/include/libsigrok/libsigrok.h
+++ b/include/libsigrok/libsigrok.h
@@ -231,6 +231,8 @@ enum sr_mq {
SR_MQ_APPARENT_POWER,
/** Mass */
SR_MQ_MASS,
+ /** Harmonic ratio */
+ SR_MQ_HARMONIC_RATIO,
/* Update sr_key_info_mq[] (hwdriver.c) upon changes! */
};
diff --git a/src/hwdriver.c b/src/hwdriver.c
index ab22101..20fc3bb 100644
--- a/src/hwdriver.c
+++ b/src/hwdriver.c
@@ -247,6 +247,7 @@ static struct sr_key_info sr_key_info_mq[] = {
{SR_MQ_POWER_FACTOR, 0, "power_factor", "Power factor", NULL},
{SR_MQ_APPARENT_POWER, 0, "apparent_power", "Apparent power", NULL},
{SR_MQ_MASS, 0, "mass", "Mass", NULL},
+ {SR_MQ_HARMONIC_RATIO, 0, "harmonic_ratio", "Harmonic ratio", NULL},
ALL_ZERO
};