chg: remove some warning of unused variables

This commit is contained in:
Chris 2018-09-10 22:49:29 +02:00
parent 9ee550af45
commit 5959cdf62c

View file

@ -1645,7 +1645,7 @@ int CmdNorm(const char *Cmd) {
// set signal properties low/high/mean/amplitude and isnoice detection // set signal properties low/high/mean/amplitude and isnoice detection
uint8_t bits[GraphTraceLen]; uint8_t bits[GraphTraceLen];
size_t size = getFromGraphBuf(bits); size_t size = getFromGraphBuf(bits);
isNoise(bits, sizeof(bits)); isNoise(bits, size);
RepaintGraphWindow(); RepaintGraphWindow();
return 0; return 0;
} }
@ -1735,7 +1735,7 @@ int CmdDirectionalThreshold(const char *Cmd) {
// set signal properties low/high/mean/amplitude and isnoice detection // set signal properties low/high/mean/amplitude and isnoice detection
uint8_t bits[GraphTraceLen]; uint8_t bits[GraphTraceLen];
size_t size = getFromGraphBuf(bits); size_t size = getFromGraphBuf(bits);
isNoise(bits, sizeof(bits)); isNoise(bits, size);
RepaintGraphWindow(); RepaintGraphWindow();
return 0; return 0;
@ -1767,7 +1767,7 @@ int CmdZerocrossings(const char *Cmd) {
// set signal properties low/high/mean/amplitude and isnoice detection // set signal properties low/high/mean/amplitude and isnoice detection
uint8_t bits[GraphTraceLen]; uint8_t bits[GraphTraceLen];
size_t size = getFromGraphBuf(bits); size_t size = getFromGraphBuf(bits);
isNoise(bits, sizeof(bits)); isNoise(bits, size);
RepaintGraphWindow(); RepaintGraphWindow();
return 0; return 0;
@ -2025,7 +2025,7 @@ int CmdDataIIR(const char *Cmd){
// set signal properties low/high/mean/amplitude and isnoice detection // set signal properties low/high/mean/amplitude and isnoice detection
uint8_t bits[GraphTraceLen]; uint8_t bits[GraphTraceLen];
size_t size = getFromGraphBuf(bits); size_t size = getFromGraphBuf(bits);
isNoise(bits, sizeof(bits)); isNoise(bits, size);
RepaintGraphWindow(); RepaintGraphWindow();
return 0; return 0;