From 549a59a573e659e3a701df122e8af643f1bb4413 Mon Sep 17 00:00:00 2001 From: Kukumagi Date: Fri, 24 May 2024 21:39:18 +0300 Subject: [PATCH] Fix canfd startup. Now when INT pin is connected then everything should work as intended and no need to fiddle with disconnecting INT pin --- Software/Software.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/Software/Software.ino b/Software/Software.ino index 6a4d81e8..41e19d16 100644 --- a/Software/Software.ino +++ b/Software/Software.ino @@ -377,6 +377,7 @@ void init_CAN() { DataBitRateFactor::x4); // Arbitration bit rate: 500 kbit/s, data bit rate: 2 Mbit/s settings.mRequestedMode = ACAN2517FDSettings::NormalFD; // ListenOnly / Normal20B / NormalFD const uint32_t errorCode = canfd.begin(settings, [] { canfd.isr(); }); + canfd.poll(); if (errorCode == 0) { #ifdef DEBUG_VIA_USB Serial.print("Bit Rate prescaler: ");