]> sigrok.org Git - libsigrok.git/commitdiff
libsigrok.h: Add SR_MQ_HARMONIC_RATIO.
authorAurelien Jacobs <redacted>
Mon, 16 Jan 2017 10:44:22 +0000 (11:44 +0100)
committerAurelien Jacobs <redacted>
Sun, 22 Jan 2017 18:03:29 +0000 (19:03 +0100)
include/libsigrok/libsigrok.h
src/hwdriver.c

index e132012470b703d6f7402580016f911254683fe1..e03fedc5573dbc3abb56f2f2619411e180044b82 100644 (file)
@@ -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! */
 };
index ab2210104fbe72ac6c82100253516fbcd266b65f..20fc3bb9eff69eac642dc715a2a5d5878f11fc34 100644 (file)
@@ -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
 };