[FL-2052] New build system based on scons (#1269)
This commit is contained in:
@@ -27,9 +27,9 @@ typedef enum {
|
||||
|
||||
typedef struct {
|
||||
const uint32_t quant;
|
||||
void (*const start) (iButtonWorker* worker);
|
||||
void (*const tick) (iButtonWorker* worker);
|
||||
void (*const stop) (iButtonWorker* worker);
|
||||
void (*const start)(iButtonWorker* worker);
|
||||
void (*const tick)(iButtonWorker* worker);
|
||||
void (*const stop)(iButtonWorker* worker);
|
||||
} iButtonWorkerModeType;
|
||||
|
||||
typedef enum {
|
||||
|
@@ -212,7 +212,8 @@ static void exti_cb(void* context) {
|
||||
static uint32_t pulse_start = 0;
|
||||
|
||||
if(input_state) {
|
||||
uint32_t pulse_length = (DWT->CYCCNT - pulse_start) / furi_hal_delay_instructions_per_microsecond();
|
||||
uint32_t pulse_length =
|
||||
(DWT->CYCCNT - pulse_start) / furi_hal_delay_instructions_per_microsecond();
|
||||
if(pulse_length >= OWS_RESET_MIN) {
|
||||
if(pulse_length <= OWS_RESET_MAX) {
|
||||
// reset cycle ok
|
||||
|
Reference in New Issue
Block a user