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>2019-11-08 21:14:36 +0300
committerDavid Crocker <dcrocker@eschertech.com>2019-11-08 21:14:36 +0300
commit68fa1e12e6d45507ecb5f8f075a1e608f3508e3f (patch)
tree65870dd0b5ac7f142f5b4db3f59c0356aad0a40d /src/Endstops/EndstopsManager.h
parent255319723a2c44dc23abe9ddb0f5eeb0e1e48892 (diff)
Added check when using remote endstops
When setting up G1 H1 or G1 H3 moves that rely on remote endstops, check that the expansion board knows about the Fixed build errors that occurred in some configurations
Diffstat (limited to 'src/Endstops/EndstopsManager.h')
-rw-r--r--src/Endstops/EndstopsManager.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Endstops/EndstopsManager.h b/src/Endstops/EndstopsManager.h
index 704738a3..859ac8f2 100644
--- a/src/Endstops/EndstopsManager.h
+++ b/src/Endstops/EndstopsManager.h
@@ -26,17 +26,17 @@ public:
void Init();
- // Set up the active endstop list according to the axes commanded to move in a G0/G1 S1/S3 command
- void EnableAxisEndstops(AxesBitmap axes, bool forHoming);
+ // Set up the active endstop list according to the axes commanded to move in a G0/G1 S1/S3 command returning true if successful
+ bool EnableAxisEndstops(AxesBitmap axes, bool forHoming) __attribute__ ((warn_unused_result));
- // Set up the active endstops for Z probing
- void EnableZProbe(size_t probeNumber, bool probingAway = false);
+ // Set up the active endstops for Z probing returning true if successful
+ bool EnableZProbe(size_t probeNumber, bool probingAway = false) __attribute__ ((warn_unused_result));
// Set up the active endstops for Z probing with the current probe
- void EnableCurrentZProbe(bool probingAway = false) { EnableZProbe(currentZProbeNumber, probingAway); }
+ bool EnableCurrentZProbe(bool probingAway = false) __attribute__ ((warn_unused_result)) { return EnableZProbe(currentZProbeNumber, probingAway); }
// Enable extruder endstops
- void EnableExtruderEndstop(size_t extruder);
+ bool EnableExtruderEndstop(size_t extruder);
// Get the first endstop that has triggered and remove it from the active list if appropriate
EndstopHitDetails CheckEndstops(bool goingSlow);