diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-10-10 12:56:10 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-10-10 12:56:10 +0300 |
commit | 08b18df87b30350bcf8bb38f3c68837a7b3929e2 (patch) | |
tree | 3584676f8479e373df5b90103565860e31e00373 /src/RepRapFirmware.h | |
parent | 483121d32749f5c7965b3fe12b8c7449bdab49b0 (diff) |
Partial implementation of filament monitors on expansion boards
Diffstat (limited to 'src/RepRapFirmware.h')
-rw-r--r-- | src/RepRapFirmware.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/RepRapFirmware.h b/src/RepRapFirmware.h index 2fffdaf3..9eb36ec3 100644 --- a/src/RepRapFirmware.h +++ b/src/RepRapFirmware.h @@ -207,6 +207,16 @@ struct DriverId localDriver = (uint8_t)driver; } + bool operator==(const DriverId other) const noexcept + { + return localDriver == other.localDriver; + } + + bool operator!=(const DriverId other) const noexcept + { + return localDriver != other.localDriver; + } + void Clear() noexcept { localDriver = 0; } bool IsLocal() const noexcept { return true; } |