From 5f5b7bdb2540ab9e05823180f825d374e1c4d8a1 Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Sat, 1 Feb 2020 13:06:20 +0000 Subject: [PATCH] Revert "nrf: spi: Feed the watchdog from machine.SPI.write()" This reverts commit 1d1cd687138a8bb0b3c80dbc1b3cb13bf9ee8ab0. --- ports/nrf/modules/machine/spi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/ports/nrf/modules/machine/spi.c b/ports/nrf/modules/machine/spi.c index 1e149711c..4361a8f8f 100644 --- a/ports/nrf/modules/machine/spi.c +++ b/ports/nrf/modules/machine/spi.c @@ -39,7 +39,6 @@ #include "pin.h" #include "genhdr/pins.h" #include "spi.h" -#include "wdt.h" #if NRFX_SPI_ENABLED #include "nrfx_spi.h" #else @@ -405,7 +404,6 @@ MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mp_machine_spi_readinto_obj, 2, 3, mp_machin STATIC mp_obj_t mp_machine_spi_write(mp_obj_t self, mp_obj_t wr_buf) { mp_buffer_info_t src; mp_get_buffer_raise(wr_buf, &src, MP_BUFFER_READ); - wdt_feed(); spi_transfer(self, src.len, (const uint8_t*)src.buf, NULL); return mp_const_none; }