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>2018-02-06 02:38:47 +0300
committerDavid Crocker <dcrocker@eschertech.com>2018-02-06 02:38:47 +0300
commitc5a8315c2d0ab6eb6a7c961e0f44cea198bee38d (patch)
treec15f0b8d3d7eb6a378992816a4b4223f56d858ef /src/Platform.cpp
parent1448121041393c9a878c3dd84ddd97dff2a4687f (diff)
More work on SAM4S port
Renamed IoPort{.cpp,.h} to avoid name clash with ASF Fixes to 12864 display Support beeper on 12864 display Encoder parameters are now configurable (M918)
Diffstat (limited to 'src/Platform.cpp')
-rw-r--r--src/Platform.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/Platform.cpp b/src/Platform.cpp
index 8de6c225..28f12fe1 100644
--- a/src/Platform.cpp
+++ b/src/Platform.cpp
@@ -40,10 +40,9 @@
#include "sd_mmc.h"
-#ifdef DUET_NG
+#if defined(DUET_NG)
# include "TMC2660.h"
-#endif
-#ifdef DUET_M
+#elif defined(DUET_M)
# include "TMC22xx.h"
#endif
@@ -51,6 +50,10 @@
# include "FirmwareUpdater.h"
#endif
+#if SUPPORT_12864_LCD
+# include "Display/Display.h"
+#endif
+
#include <climits>
#include <malloc.h>
@@ -1023,6 +1026,10 @@ void Platform::UpdateFirmware()
return;
}
+#if SUPPORT_12864_LCD
+ reprap.GetDisplay().UpdatingFirmware(); // put the firmware update message on the display
+#endif
+
// The machine will be unresponsive for a few seconds, don't risk damaging the heaters...
reprap.EmergencyStop();