mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-11 07:12:09 +03:00
[FL-3107] Fix Cyfral & Metakom emulation (#2392)
* Fix Cyfral & Metakom emulation Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
parent
628f089c42
commit
5a730e3adc
@ -237,10 +237,8 @@ void ibutton_worker_emulate_timer_cb(void* context) {
|
|||||||
const LevelDuration level_duration =
|
const LevelDuration level_duration =
|
||||||
protocol_dict_encoder_yield(worker->protocols, worker->protocol_to_encode);
|
protocol_dict_encoder_yield(worker->protocols, worker->protocol_to_encode);
|
||||||
|
|
||||||
const bool level = level_duration_get_level(level_duration);
|
furi_hal_ibutton_emulate_set_next(level_duration_get_duration(level_duration));
|
||||||
|
furi_hal_ibutton_pin_write(level_duration_get_level(level_duration));
|
||||||
furi_hal_ibutton_emulate_set_next(level);
|
|
||||||
furi_hal_ibutton_pin_write(level);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ibutton_worker_emulate_timer_start(iButtonWorker* worker) {
|
void ibutton_worker_emulate_timer_start(iButtonWorker* worker) {
|
||||||
|
Loading…
Reference in New Issue
Block a user