]> sigrok.org Git - libsigrok.git/commitdiff
libsigrok.h: Add SR_MQ_ENERGY
authorAndreas Sandberg <redacted>
Sat, 15 Feb 2020 12:53:16 +0000 (12:53 +0000)
committerUwe Hermann <redacted>
Thu, 4 Jun 2020 21:13:43 +0000 (23:13 +0200)
include/libsigrok/libsigrok.h
src/hwdriver.c

index 7dcea492f4450f0dadfa543e2b8346a7698581ca..2779490d9db0134d322e29f3eabfe5d63daf889c 100644 (file)
@@ -233,6 +233,8 @@ enum sr_mq {
        SR_MQ_MASS,
        /** Harmonic ratio */
        SR_MQ_HARMONIC_RATIO,
+       /** Energy. */
+       SR_MQ_ENERGY,
 
        /* Update sr_key_info_mq[] (hwdriver.c) upon changes! */
 };
index cc541550b3ae3b8c2eea86690092ef680b516ae0..1016507e12eb38951749e4545ebb2eb2b330531c 100644 (file)
@@ -270,6 +270,7 @@ static struct sr_key_info sr_key_info_mq[] = {
        {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},
+       {SR_MQ_ENERGY, 0, "energy", "Energy", NULL},
        ALL_ZERO
 };