From 7342740311ff5426640a8ecebfd77c0c1a3a6537 Mon Sep 17 00:00:00 2001 From: Hydranix Date: Thu, 28 Mar 2024 16:45:33 -0700 Subject: [PATCH] Update mcp2515.c Delay in mpc2515_init function increased to 50us to fix init failure errors on some devices. This fix was reported by 'Wesley thomas' via arduino.stackexchange answer: https://arduino.stackexchange.com/a/31769 --- Libraries/Canbus/mcp2515.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Canbus/mcp2515.c b/Libraries/Canbus/mcp2515.c index ccae6f0..ea3cd87 100644 --- a/Libraries/Canbus/mcp2515.c +++ b/Libraries/Canbus/mcp2515.c @@ -146,7 +146,7 @@ uint8_t mcp2515_init(uint8_t speed) SET(MCP2515_CS); // wait a little bit until the MCP2515 has restarted - _delay_us(10); + _delay_us(50); // load CNF1..3 Register RESET(MCP2515_CS);