From 5a2f0b08e0e3f20cda977b510b680d5843ae7283 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 12 Dec 2023 13:06:53 +1100 Subject: Centralise which level is 'locked' --- src/drivers/include/gpios.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/drivers/include/gpios.hpp') 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 { -- cgit v1.2.3