diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-10-19 12:51:35 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-10-19 12:51:35 +0300 |
commit | 7361f65fc75ed4d5e73aa3d87b71b060aaaac1e5 (patch) | |
tree | bef8c81cd771d981bf936ffea5449e4af0a82788 /src/Endstops/SwitchEndstop.h | |
parent | 7f04c9f483e561899467d4feab3d660a92bee1d1 (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.h | 4 |
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 } |