mirror of
https://github.com/Cian-H/qmk_firmware.git
synced 2025-12-22 22:21:58 +00:00
Review fixes for layer lock feature (#24627)
This commit is contained in:
@@ -140,9 +140,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#ifdef OS_DETECTION_ENABLE
|
||||
# include "os_detection.h"
|
||||
#endif
|
||||
#if defined(LAYER_LOCK_ENABLE) && LAYER_LOCK_IDLE_TIMEOUT > 0
|
||||
#ifdef LAYER_LOCK_ENABLE
|
||||
# include "layer_lock.h"
|
||||
#endif // LAYER_LOCK_ENABLE
|
||||
#endif
|
||||
|
||||
static uint32_t last_input_modification_time = 0;
|
||||
uint32_t last_input_activity_time(void) {
|
||||
@@ -659,7 +659,7 @@ void quantum_task(void) {
|
||||
secure_task();
|
||||
#endif
|
||||
|
||||
#if defined(LAYER_LOCK_ENABLE) && LAYER_LOCK_IDLE_TIMEOUT > 0
|
||||
#ifdef LAYER_LOCK_ENABLE
|
||||
layer_lock_task();
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user