analog->mq = SR_MQ_POWER;
analog->unit = SR_UNIT_WATT;
}
- if (info->is_power_factor_freq) {
- /* TODO: Handle power factor. */
- // analog->mq = SR_MQ_POWER_FACTOR;
- // analog->unit = SR_UNIT_UNITLESS;
- analog->mq = SR_MQ_FREQUENCY;
- analog->unit = SR_UNIT_HERTZ;
- }
if (info->is_power_apparent_power) {
analog->mq = SR_MQ_POWER;
analog->unit = SR_UNIT_WATT;
// analog->mq = SR_MQ_APPARENT_POWER;
// analog->unit = SR_UNIT_VOLT_AMPERE;
}
+ if (info->is_power_factor_freq) {
+ /* TODO: Handle power factor. */
+ // analog->mq = SR_MQ_POWER_FACTOR;
+ // analog->unit = SR_UNIT_UNITLESS;
+ analog->mq = SR_MQ_FREQUENCY;
+ analog->unit = SR_UNIT_HERTZ;
+ }
/* Measurement related flags */
if (info->is_ac)