#ifndef LOCK_H #define LOCK_H #include "firmware.h" // times below are multiplied by DELAY_TIME, in ms #define LOCK_ARMED_TIMEOUT 1000 enum lockStates { LOCK_OFF, LOCK_PREARM, // prevent arming while buttons held LOCK_ARMED, LOCK_ON_PRESSED, // to wait until button is released LOCK_ON, }; extern enum lockStates lockState; void processLockState(); #endif