mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Plugins: iButton Fuzzer change minimal delay
after @Tobirg successfully verified stability with lower delay
This commit is contained in:
@@ -69,7 +69,7 @@ uint8_t id_list_cyfral[14][2] = {
|
||||
};
|
||||
|
||||
void ibtnfuzzer_scene_run_attack_on_enter(iBtnFuzzerState* context) {
|
||||
context->time_between_cards = 10;
|
||||
context->time_between_cards = 8;
|
||||
context->attack_step = 0;
|
||||
context->key = ibutton_key_alloc();
|
||||
context->worker = ibutton_worker_alloc();
|
||||
@@ -362,7 +362,7 @@ void ibtnfuzzer_scene_run_attack_on_event(iBtnFuzzerEvent event, iBtnFuzzerState
|
||||
break;
|
||||
case InputKeyLeft:
|
||||
if(!context->is_attacking) {
|
||||
if(context->time_between_cards > 8) {
|
||||
if(context->time_between_cards > 4) {
|
||||
context->time_between_cards--;
|
||||
}
|
||||
}
|
||||
@@ -408,8 +408,8 @@ void ibtnfuzzer_scene_run_attack_on_event(iBtnFuzzerEvent event, iBtnFuzzerState
|
||||
switch(event.key) {
|
||||
case InputKeyLeft:
|
||||
if(!context->is_attacking) {
|
||||
if(context->time_between_cards > 8) {
|
||||
if((context->time_between_cards - 10) > 8) {
|
||||
if(context->time_between_cards > 4) {
|
||||
if((context->time_between_cards - 10) > 4) {
|
||||
context->time_between_cards -= 10;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user