From 268318eec6a018d21ab779019e327a3baa825d8a Mon Sep 17 00:00:00 2001 From: jflyper Date: Sat, 23 Sep 2017 01:21:00 +0900 Subject: [PATCH] Touching up Disable debug variable assignment --- src/main/drivers/max7456.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/drivers/max7456.c b/src/main/drivers/max7456.c index 3ac56db359..2e43433404 100644 --- a/src/main/drivers/max7456.c +++ b/src/main/drivers/max7456.c @@ -455,10 +455,11 @@ void max7456Init(const vcdProfile_t *pVcdProfile) break; } - // XXX Disable for production +#ifdef DEBUG_MAX7456_SPI_CLOCK debug[0] = systemConfig()->cpu_overclock; debug[1] = max7456DeviceType; debug[2] = max7456SpiClock; +#endif #endif spiSetDivisor(MAX7456_SPI_INSTANCE, max7456SpiClock); @@ -547,8 +548,6 @@ bool max7456DmaInProgress(void) #endif } -#include "build/debug.h" - void max7456DrawScreen(void) { uint8_t stallCheck;