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>2021-01-09 18:24:16 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-01-09 18:24:16 +0300
commit277977b60b2b1349578863dd16e4095121d6c749 (patch)
tree8685eccfded96c9da76d6ecbc138b33df6bc9bbd /src/Endstops
parent6bb2ddc8936d1352e5a5146f20c86fa388076f68 (diff)
Fixes for gcc version 10
Also fixed shadow definitions
Diffstat (limited to 'src/Endstops')
-rw-r--r--src/Endstops/Endstop.h2
-rw-r--r--src/Endstops/SwitchEndstop.cpp2
-rw-r--r--src/Endstops/SwitchEndstop.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/Endstops/Endstop.h b/src/Endstops/Endstop.h
index 73f51872..3d288a02 100644
--- a/src/Endstops/Endstop.h
+++ b/src/Endstops/Endstop.h
@@ -105,7 +105,7 @@ public:
void SetAtHighEnd(bool b) noexcept { atHighEnd = b; }
protected:
- Endstop(uint8_t axis, EndStopPosition pos) noexcept;
+ Endstop(uint8_t p_axis, EndStopPosition pos) noexcept;
DECLARE_OBJECT_MODEL
diff --git a/src/Endstops/SwitchEndstop.cpp b/src/Endstops/SwitchEndstop.cpp
index d1615a9a..87af1b9b 100644
--- a/src/Endstops/SwitchEndstop.cpp
+++ b/src/Endstops/SwitchEndstop.cpp
@@ -20,7 +20,7 @@
#endif
// Switch endstop
-SwitchEndstop::SwitchEndstop(uint8_t axis, EndStopPosition pos) noexcept : Endstop(axis, pos), numPortsUsed(0)
+SwitchEndstop::SwitchEndstop(uint8_t p_axis, EndStopPosition pos) noexcept : Endstop(p_axis, pos), numPortsUsed(0)
{
// ports will be initialised automatically by the IoPort default constructor
}
diff --git a/src/Endstops/SwitchEndstop.h b/src/Endstops/SwitchEndstop.h
index 75117daf..b2cc997e 100644
--- a/src/Endstops/SwitchEndstop.h
+++ b/src/Endstops/SwitchEndstop.h
@@ -19,7 +19,7 @@ public:
void operator delete(void* p) noexcept { FreelistManager::Release<SwitchEndstop>(p); }
~SwitchEndstop() noexcept override;
- SwitchEndstop(uint8_t axis, EndStopPosition pos) noexcept;
+ SwitchEndstop(uint8_t p_axis, EndStopPosition pos) noexcept;
EndStopType GetEndstopType() const noexcept override;
EndStopHit Stopped() const noexcept override;