From: Frank Stettner Date: Mon, 27 Jul 2020 17:54:06 +0000 (+0200) Subject: libsigrok.h: Add MQ for electric charge. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=82ff7044494dab2e1473e45c72ee32b038d3eee0;p=libsigrok.git libsigrok.h: Add MQ for electric charge. --- diff --git a/include/libsigrok/libsigrok.h b/include/libsigrok/libsigrok.h index 070107ee..0b06cb7c 100644 --- a/include/libsigrok/libsigrok.h +++ b/include/libsigrok/libsigrok.h @@ -235,6 +235,8 @@ enum sr_mq { SR_MQ_HARMONIC_RATIO, /** Energy. */ SR_MQ_ENERGY, + /** Electric charge. */ + SR_MQ_ELECTRIC_CHARGE, /* Update sr_key_info_mq[] (hwdriver.c) upon changes! */ }; diff --git a/src/hwdriver.c b/src/hwdriver.c index 03d268e1..a24d54d5 100644 --- a/src/hwdriver.c +++ b/src/hwdriver.c @@ -273,6 +273,7 @@ static struct sr_key_info sr_key_info_mq[] = { {SR_MQ_MASS, 0, "mass", "Mass", NULL}, {SR_MQ_HARMONIC_RATIO, 0, "harmonic_ratio", "Harmonic ratio", NULL}, {SR_MQ_ENERGY, 0, "energy", "Energy", NULL}, + {SR_MQ_ELECTRIC_CHARGE, 0, "electric_charge", "Electric charge", NULL}, ALL_ZERO };