mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-07-27 01:58:09 -07:00
Merge branch 'dev' of https://github.com/DarkFlippers/unleashed-firmware into xfw-dev
This commit is contained in:
@@ -243,11 +243,15 @@ static void digital_signal_stop_timer() {
|
||||
LL_TIM_DisableUpdateEvent(TIM2);
|
||||
LL_TIM_DisableDMAReq_UPDATE(TIM2);
|
||||
|
||||
furi_hal_bus_disable(FuriHalBusTIM2);
|
||||
if(furi_hal_bus_is_enabled(FuriHalBusTIM2)) {
|
||||
furi_hal_bus_disable(FuriHalBusTIM2);
|
||||
}
|
||||
}
|
||||
|
||||
static void digital_signal_setup_timer() {
|
||||
furi_hal_bus_enable(FuriHalBusTIM2);
|
||||
if(!furi_hal_bus_is_enabled(FuriHalBusTIM2)) {
|
||||
furi_hal_bus_enable(FuriHalBusTIM2);
|
||||
}
|
||||
|
||||
LL_TIM_SetCounterMode(TIM2, LL_TIM_COUNTERMODE_UP);
|
||||
LL_TIM_SetClockDivision(TIM2, LL_TIM_CLOCKDIVISION_DIV1);
|
||||
|
||||
@@ -175,7 +175,6 @@ void nfc_worker_nfcv_emulate(NfcWorker* nfc_worker) {
|
||||
}
|
||||
}
|
||||
}
|
||||
furi_delay_ms(10);
|
||||
}
|
||||
nfcv_emu_deinit(nfcv_data);
|
||||
|
||||
@@ -203,7 +202,6 @@ void nfc_worker_nfcv_sniff(NfcWorker* nfc_worker) {
|
||||
nfc_worker->callback(NfcWorkerEventNfcVCommandExecuted, nfc_worker->context);
|
||||
}
|
||||
}
|
||||
furi_delay_ms(10);
|
||||
}
|
||||
nfcv_emu_deinit(nfcv_data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user