mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 13:03:13 +00:00
Plugins: iButton Fuzzer change minimal delay
after @Tobirg successfully verified stability with lower delay
This commit is contained in:
parent
1c81dc2dee
commit
7d59eb1848
1 changed files with 4 additions and 4 deletions
|
@ -69,7 +69,7 @@ uint8_t id_list_cyfral[14][2] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
void ibtnfuzzer_scene_run_attack_on_enter(iBtnFuzzerState* context) {
|
void ibtnfuzzer_scene_run_attack_on_enter(iBtnFuzzerState* context) {
|
||||||
context->time_between_cards = 10;
|
context->time_between_cards = 8;
|
||||||
context->attack_step = 0;
|
context->attack_step = 0;
|
||||||
context->key = ibutton_key_alloc();
|
context->key = ibutton_key_alloc();
|
||||||
context->worker = ibutton_worker_alloc();
|
context->worker = ibutton_worker_alloc();
|
||||||
|
@ -362,7 +362,7 @@ void ibtnfuzzer_scene_run_attack_on_event(iBtnFuzzerEvent event, iBtnFuzzerState
|
||||||
break;
|
break;
|
||||||
case InputKeyLeft:
|
case InputKeyLeft:
|
||||||
if(!context->is_attacking) {
|
if(!context->is_attacking) {
|
||||||
if(context->time_between_cards > 8) {
|
if(context->time_between_cards > 4) {
|
||||||
context->time_between_cards--;
|
context->time_between_cards--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -408,8 +408,8 @@ void ibtnfuzzer_scene_run_attack_on_event(iBtnFuzzerEvent event, iBtnFuzzerState
|
||||||
switch(event.key) {
|
switch(event.key) {
|
||||||
case InputKeyLeft:
|
case InputKeyLeft:
|
||||||
if(!context->is_attacking) {
|
if(!context->is_attacking) {
|
||||||
if(context->time_between_cards > 8) {
|
if(context->time_between_cards > 4) {
|
||||||
if((context->time_between_cards - 10) > 8) {
|
if((context->time_between_cards - 10) > 4) {
|
||||||
context->time_between_cards -= 10;
|
context->time_between_cards -= 10;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue