From ee4d0141f9b07e0a1420ba77f740c7e954ad9552 Mon Sep 17 00:00:00 2001 From: Adam Greenwood-Byrne Date: Fri, 8 Apr 2022 21:57:33 +0100 Subject: [PATCH] Updated part14-spi-ethernet driver file for consistency --- part14-spi-ethernet/net/enc28j60.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/part14-spi-ethernet/net/enc28j60.c b/part14-spi-ethernet/net/enc28j60.c index 9547184..90cb1e8 100644 --- a/part14-spi-ethernet/net/enc28j60.c +++ b/part14-spi-ethernet/net/enc28j60.c @@ -1171,6 +1171,8 @@ void ENC_Transmit(ENC_HandleTypeDef *handle) enc_waitwhilegreg(ENC_EIR, EIR_TXIF | EIR_TXERIF, 0); #endif + HAL_Delay(20); // Added by AGB - fixes weird timing bug + /* Stop transmission */ enc_bfcgreg(ENC_ECON1, ECON1_TXRTS);