Reduce switch-on time to 100ms

This commit is contained in:
C0d3v 2026-01-15 21:06:27 +01:00
parent f52dd314cb
commit 7ad21cd1d4

View File

@ -92,7 +92,7 @@ void handleEncoderMovement()
/* ========================================================= */ /* ========================================================= */
const int PIN_POWER_SWITCH_INPUT = 2; const int PIN_POWER_SWITCH_INPUT = 2;
const int PIN_POWER_SWITCH_OUTPUT = 12; const int PIN_POWER_SWITCH_OUTPUT = 12;
const unsigned long POWER_STABLE_THRESHOLD = 400; const unsigned long POWER_STABLE_THRESHOLD = 100;
bool powerStableState; bool powerStableState;
bool powerLastRawState; bool powerLastRawState;
unsigned long powerLastChangeTime = 0; unsigned long powerLastChangeTime = 0;