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-10 12:56:10 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-10-10 12:56:10 +0300
commit08b18df87b30350bcf8bb38f3c68837a7b3929e2 (patch)
tree3584676f8479e373df5b90103565860e31e00373 /src/RepRapFirmware.h
parent483121d32749f5c7965b3fe12b8c7449bdab49b0 (diff)
Partial implementation of filament monitors on expansion boards
Diffstat (limited to 'src/RepRapFirmware.h')
-rw-r--r--src/RepRapFirmware.h10
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; }