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>2022-08-09 13:26:38 +0300
committerDavid Crocker <dcrocker@eschertech.com>2022-08-09 13:26:38 +0300
commitd2ad81fa65a31594d310b833e0cfdb2f78c3d3bd (patch)
tree1a03cff4b616b5e47683d23bc3b8a5881f0a083c
parent404d855527bb0247e330ef43ad884201262b0c26 (diff)
Added option to request firmware blocks over CAN in UF2 format
-rw-r--r--src/CAN/CommandProcessor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CAN/CommandProcessor.cpp b/src/CAN/CommandProcessor.cpp
index ccfc17e3..7751f892 100644
--- a/src/CAN/CommandProcessor.cpp
+++ b/src/CAN/CommandProcessor.cpp
@@ -58,7 +58,7 @@ pre(buf->id.MsgType() == CanMessageType::firmwareBlockRequest)
String<MaxFilenameLength> fname;
fname.copy((msg.fileWanted == (unsigned int)FirmwareModule::bootloader) ? "Duet3Bootloader-" : "Duet3Firmware_");
fname.catn(msg.boardType, msg.GetBoardTypeLength(buf->dataLength));
- fname.cat(".bin");
+ fname.cat((msg.uf2Format) ? ".uf2" : ".bin");
uint32_t fileOffset = msg.fileOffset, fileLength = 0;
uint32_t lreq = msg.lengthRequested;