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>2020-10-19 12:51:35 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-10-19 12:51:35 +0300
commit7361f65fc75ed4d5e73aa3d87b71b060aaaac1e5 (patch)
treebef8c81cd771d981bf936ffea5449e4af0a82788 /src/Endstops/SwitchEndstop.h
parent7f04c9f483e561899467d4feab3d660a92bee1d1 (diff)
Minor refactoring to bring IoPorts into line with expansion board f/w
Diffstat (limited to 'src/Endstops/SwitchEndstop.h')
-rw-r--r--src/Endstops/SwitchEndstop.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Endstops/SwitchEndstop.h b/src/Endstops/SwitchEndstop.h
index 88ac12e0..a4f33da6 100644
--- a/src/Endstops/SwitchEndstop.h
+++ b/src/Endstops/SwitchEndstop.h
@@ -45,9 +45,9 @@ private:
inline bool IsTriggered(size_t index) const noexcept
{
#if SUPPORT_CAN_EXPANSION
- return (boardNumbers[index] == CanId::MasterAddress) ? ports[index].Read() : states[index];
+ return (boardNumbers[index] == CanId::MasterAddress) ? ports[index].ReadDigital() : states[index];
#else
- return ports[index].Read();
+ return ports[index].ReadDigital();
#endif
}