From: Andreas Sandberg Date: Sat, 15 Feb 2020 12:53:16 +0000 (+0000) Subject: libsigrok.h: Add SR_MQ_ENERGY X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=0cc3d090b7d3039ae096952e8db5c8a468d721ff;p=libsigrok.git libsigrok.h: Add SR_MQ_ENERGY --- diff --git a/include/libsigrok/libsigrok.h b/include/libsigrok/libsigrok.h index 7dcea492..2779490d 100644 --- a/include/libsigrok/libsigrok.h +++ b/include/libsigrok/libsigrok.h @@ -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! */ }; diff --git a/src/hwdriver.c b/src/hwdriver.c index cc541550..1016507e 100644 --- a/src/hwdriver.c +++ b/src/hwdriver.c @@ -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 };