From ad00a54da6a17c881881d2ed7a3f3fe41170fa26 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 1 May 2013 01:02:46 +0200 Subject: [PATCH] fs9922: Fix beep mode. --- hardware/common/dmm/fs9922.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;