summaryrefslogtreecommitdiff
path: root/src/drivers/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/include')
-rw-r--r--src/drivers/include/gpios.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/include/gpios.hpp b/src/drivers/include/gpios.hpp
index 1755da92..fe4b1c4c 100644
--- a/src/drivers/include/gpios.hpp
+++ b/src/drivers/include/gpios.hpp
@@ -77,6 +77,8 @@ class IGpios {
* Returns the most recently cached value of the given pin.
*/
virtual auto Get(Pin) const -> bool = 0;
+
+ virtual auto IsLocked() const -> bool { return Get(Pin::kKeyLock); }
};
class Gpios : public IGpios {