From: Uwe Hermann Date: Tue, 30 Apr 2013 23:02:46 +0000 (+0200) Subject: fs9922: Fix beep mode. X-Git-Tag: dsupstream~18 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=ad00a54da6a17c881881d2ed7a3f3fe41170fa26;p=libsigrok.git fs9922: Fix beep mode. --- diff --git a/hardware/common/dmm/fs9922.c b/hardware/common/dmm/fs9922.c index fced8f59..90cc8b06 100644 --- a/hardware/common/dmm/fs9922.c +++ b/hardware/common/dmm/fs9922.c @@ -279,7 +279,7 @@ static void handle_flags(struct sr_datafeed_analog *analog, float *floatval, if (info->is_beep) { analog->mq = SR_MQ_CONTINUITY; analog->unit = SR_UNIT_BOOLEAN; - *floatval = (*floatval < 0.0) ? 0.0 : 1.0; + *floatval = (*floatval == INFINITY) ? 0.0 : 1.0; } if (info->is_percent) { analog->mq = SR_MQ_DUTY_CYCLE;