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-03-07 17:24:52 +0300
committerDavid Crocker <dcrocker@eschertech.com>2022-03-07 17:24:52 +0300
commit966eebf742e670fe10fb0a2b5f2daa305dc4f30e (patch)
tree0c757791c5d1c9ef30d91f991c1de4c866e0f37e /src/GCodes/GCodes.h
parent5ce2a43ffdb4e0c4f9e0c8d4b6f1d8b0ffea8f11 (diff)
Corrections for Mini4 board
Diffstat (limited to 'src/GCodes/GCodes.h')
-rw-r--r--src/GCodes/GCodes.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/GCodes/GCodes.h b/src/GCodes/GCodes.h
index 9ea4c8b7..010d9671 100644
--- a/src/GCodes/GCodes.h
+++ b/src/GCodes/GCodes.h
@@ -154,7 +154,13 @@ public:
PauseState GetPauseState() const noexcept { return pauseState; }
bool IsFlashing() const noexcept { return isFlashing; } // Is a new firmware binary going to be flashed?
- bool IsFlashingPanelDue() const noexcept { return isFlashingPanelDue; }
+
+ bool IsFlashingPanelDue() const noexcept
+#if SUPPORT_PANELDUE_FLASH
+ { return isFlashingPanelDue; }
+#else
+ { return false; }
+#endif
bool IsReallyPrinting() const noexcept; // Return true if we are printing from SD card and not pausing, paused or resuming
bool IsReallyPrintingOrResuming() const noexcept;
@@ -664,7 +670,9 @@ private:
// Firmware update
Bitmap<uint8_t> firmwareUpdateModuleMap; // Bitmap of firmware modules to be updated
bool isFlashing; // Is a new firmware binary going to be flashed?
+#if SUPPORT_PANELDUE_FLASH
bool isFlashingPanelDue; // Are we in the process of flashing PanelDue?
+#endif
// Code queue
GCodeQueue *codeQueue; // Stores certain codes for deferred execution