diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-12-12 13:06:53 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-12-12 13:06:53 +1100 |
| commit | 5a2f0b08e0e3f20cda977b510b680d5843ae7283 (patch) | |
| tree | 13f1ce11f13916e3f217dfd687703c8dc757f7c1 /src/drivers/include/gpios.hpp | |
| parent | 01eb8683733f39a6de984111f035bb8f71dcf8b8 (diff) | |
| download | tangara-fw-5a2f0b08e0e3f20cda977b510b680d5843ae7283.tar.gz | |
Centralise which level is 'locked'
Diffstat (limited to 'src/drivers/include/gpios.hpp')
| -rw-r--r-- | src/drivers/include/gpios.hpp | 2 |
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 { |
