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;