Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2020-09-15 15:21:13 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-09-15 15:21:13 +0300
commitcb2ad1faedcbe80a40b27afda6523cd394da8258 (patch)
tree8b381fd76a9deaa6895b938ff5576da52d3a9e05
parent40fa67c24aa254c65b92eee5741e573d2f86f8a4 (diff)
Bug fix: SBC SPI buffers were not being allocated in Duet 2SBC build3.2beta1
-rw-r--r--src/Linux/DataTransfer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Linux/DataTransfer.cpp b/src/Linux/DataTransfer.cpp
index a3c679c3..39d1c154 100644
--- a/src/Linux/DataTransfer.cpp
+++ b/src/Linux/DataTransfer.cpp
@@ -409,11 +409,13 @@ void DataTransfer::Init() noexcept
// Initialise transfer ready pin
pinMode(SbcTfrReadyPin, OUTPUT_LOW);
-#if SAME5x
+#if !SAME70
// Allocate buffers
rxBuffer = (char *)new uint32_t[(LinuxTransferBufferSize + 3)/4];
txBuffer = (char *)new uint32_t[(LinuxTransferBufferSize + 3)/4];
+#endif
+#if SAME5x
// Initialize SPI
for (Pin p : SbcSpiSercomPins)
{