From 0d11b01cce1d0a2579edb2c17362d1c6419de8e2 Mon Sep 17 00:00:00 2001 From: Firmware Batman Date: Sat, 29 Jul 2017 19:04:58 -0700 Subject: [PATCH] debugging SPI --- board/drivers/spi.h | 4 +++- tests/disable_esp.py | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 tests/disable_esp.py diff --git a/board/drivers/spi.h b/board/drivers/spi.h index 58037006a..164d83099 100644 --- a/board/drivers/spi.h +++ b/board/drivers/spi.h @@ -112,7 +112,9 @@ void EXTI4_IRQHandler(void) { if (pr & (1 << 4)) { spi_total_count = 0; spi_rx_dma(spi_buf, 0x14); - //puts("exti4\n"); + #ifdef DEBUG_SPI + puts("exti4\n"); + #endif } EXTI->PR = pr; } diff --git a/tests/disable_esp.py b/tests/disable_esp.py new file mode 100755 index 000000000..abebd9c17 --- /dev/null +++ b/tests/disable_esp.py @@ -0,0 +1,4 @@ +#!/usr/bin/env python +from panda import Panda +Panda().set_esp_power(False) +