fix(lockscreen): correct main.cpp injection anchor and early-return guard

This commit is contained in:
Justin Oros
2026-04-23 15:58:11 -07:00
parent e7618d5e51
commit 53d7149691
7 changed files with 7 additions and 17 deletions
+19
View File
@@ -0,0 +1,19 @@
#pragma once
#include <Arduino.h>
enum class LockscreenMode : uint8_t {
MODE_OFF = 0,
ENABLED = 1,
};
namespace LockscreenPlugin {
const char* modeName(LockscreenMode mode);
bool shouldLock(LockscreenMode mode);
bool shouldLockOnWake(LockscreenMode mode);
bool shouldLockOnPower(LockscreenMode mode);
void hashPin(const char* pin, char outHash[9]);
bool checkPin(const char* pin, const char* storedHash);
}