diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-03-08 13:12:15 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-03-08 13:18:53 +0300 |
commit | 2439d2de13f13efb8aac9d9276cd49322d7d8ce9 (patch) | |
tree | ee9fbaeaf546c40a256165f2e4b662f495483a7d /src/CAN | |
parent | ff32ef16b9a44768246a055a744eea321369ce21 (diff) |
Bug fix to updating firmware on CAN-connected boards
RRF was looking in /sys instead of in /firmware
Diffstat (limited to 'src/CAN')
-rw-r--r-- | src/CAN/CommandProcessor.cpp | 2 | ||||
-rw-r--r-- | src/CAN/ExpansionManager.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/CAN/CommandProcessor.cpp b/src/CAN/CommandProcessor.cpp index b1050448..9f7c842b 100644 --- a/src/CAN/CommandProcessor.cpp +++ b/src/CAN/CommandProcessor.cpp @@ -147,7 +147,7 @@ pre(buf->id.MsgType() == CanMessageType::firmwareBlockRequest) { #if HAS_MASS_STORAGE // Fetch the firmware file from the local SD card - FileStore * const f = reprap.GetPlatform().OpenFile(DEFAULT_SYS_DIR, fname.c_str(), OpenMode::read); + FileStore * const f = reprap.GetPlatform().OpenFile(FIRMWARE_DIRECTORY, fname.c_str(), OpenMode::read); if (f != nullptr) { fileLength = f->Length(); diff --git a/src/CAN/ExpansionManager.cpp b/src/CAN/ExpansionManager.cpp index e4daa1b4..53fa5acc 100644 --- a/src/CAN/ExpansionManager.cpp +++ b/src/CAN/ExpansionManager.cpp @@ -192,7 +192,7 @@ GCodeResult ExpansionManager::UpdateRemoteFirmware(uint32_t boardAddress, GCodeB # if HAS_LINUX_INTERFACE !reprap.UsingLinuxInterface() && # endif - !reprap.GetPlatform().FileExists(DEFAULT_SYS_DIR, firmwareFilename.c_str())) + !reprap.GetPlatform().FileExists(FIRMWARE_DIRECTORY, firmwareFilename.c_str())) { reply.printf("Firmware file %s not found", firmwareFilename.c_str()); return GCodeResult::error; |