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) +