From 5959cdf62c689886c2f55b6f041536f39264af63 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 10 Sep 2018 22:49:29 +0200 Subject: [PATCH] chg: remove some warning of unused variables --- client/cmddata.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/cmddata.c b/client/cmddata.c index 8b263e44d..a9f58b962 100644 --- a/client/cmddata.c +++ b/client/cmddata.c @@ -1645,7 +1645,7 @@ int CmdNorm(const char *Cmd) { // set signal properties low/high/mean/amplitude and isnoice detection uint8_t bits[GraphTraceLen]; size_t size = getFromGraphBuf(bits); - isNoise(bits, sizeof(bits)); + isNoise(bits, size); RepaintGraphWindow(); return 0; } @@ -1735,7 +1735,7 @@ int CmdDirectionalThreshold(const char *Cmd) { // set signal properties low/high/mean/amplitude and isnoice detection uint8_t bits[GraphTraceLen]; size_t size = getFromGraphBuf(bits); - isNoise(bits, sizeof(bits)); + isNoise(bits, size); RepaintGraphWindow(); return 0; @@ -1767,7 +1767,7 @@ int CmdZerocrossings(const char *Cmd) { // set signal properties low/high/mean/amplitude and isnoice detection uint8_t bits[GraphTraceLen]; size_t size = getFromGraphBuf(bits); - isNoise(bits, sizeof(bits)); + isNoise(bits, size); RepaintGraphWindow(); return 0; @@ -2025,7 +2025,7 @@ int CmdDataIIR(const char *Cmd){ // set signal properties low/high/mean/amplitude and isnoice detection uint8_t bits[GraphTraceLen]; size_t size = getFromGraphBuf(bits); - isNoise(bits, sizeof(bits)); + isNoise(bits, size); RepaintGraphWindow(); return 0;