From 8384c0f33b1c63b80eef2e7b0374036596a6aadf Mon Sep 17 00:00:00 2001 From: Steffen Windoffer Date: Thu, 17 Nov 2016 19:09:12 +0100 Subject: [PATCH] removed not used static variables --- src/main/drivers/pwm_rx.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/main/drivers/pwm_rx.c b/src/main/drivers/pwm_rx.c index 75f9b5b21..cc8aad33f 100644 --- a/src/main/drivers/pwm_rx.c +++ b/src/main/drivers/pwm_rx.c @@ -218,25 +218,6 @@ static void ppmEdgeCallback(timerCCHandlerRec_t* cbRec, captureCompare_t capture ppmDev.currentTime = currentTime; ppmDev.currentCapture = capture; -#if 1 - static uint32_t deltaTimes[20]; - static uint8_t deltaIndex = 0; - - deltaIndex = (deltaIndex + 1) % 20; - deltaTimes[deltaIndex] = ppmDev.deltaTime; - UNUSED(deltaTimes); -#endif - - -#if 1 - static uint32_t captureTimes[20]; - static uint8_t captureIndex = 0; - - captureIndex = (captureIndex + 1) % 20; - captureTimes[captureIndex] = capture; - UNUSED(captureTimes); -#endif - /* Sync pulse detection */ if (ppmDev.deltaTime > PPM_IN_MIN_SYNC_PULSE_US) { if (ppmDev.pulseIndex == ppmDev.numChannelsPrevFrame