Implement GPIO pin allowlist (#4882)

This commit is contained in:
Ken Piper
2024-09-27 19:31:05 -05:00
committed by GitHub
parent fd1b68513a
commit 0e0811eccd
2 changed files with 35 additions and 9 deletions

View File

@@ -17,6 +17,9 @@ class RemoteHardwareModule : public ProtobufModule<meshtastic_HardwareMessage>,
/// The timestamp of our last watch event (we throttle watches to 1 change every 30 seconds)
uint32_t lastWatchMsec = 0;
/// A bitmask of GPIOs that are exposed to the mesh if undefined access is not enabled
uint64_t availablePins = 0;
public:
/** Constructor
* name is for debugging output