Skip to content

Commit

Permalink
Update ibtnfuzzer_scene_run_attack.c
Browse files Browse the repository at this point in the history
  • Loading branch information
xMasterX authored Nov 16, 2022
1 parent 65035d6 commit fb27ed2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scene/ibtnfuzzer_scene_run_attack.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ void ibtnfuzzer_scene_run_attack_on_tick(iBtnFuzzerState* context) {
ibutton_worker_stop(context->worker);
ibutton_worker_stop_thread(context->worker);
context->workr_rund = false;
furi_delay_ms(500);
}
switch(context->attack) {
case iBtnFuzzerAttackDefaultValues:
Expand Down Expand Up @@ -361,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 > 0) {
if(context->time_between_cards > 8) {
context->time_between_cards--;
}
}
Expand Down Expand Up @@ -407,8 +408,10 @@ void ibtnfuzzer_scene_run_attack_on_event(iBtnFuzzerEvent event, iBtnFuzzerState
switch(event.key) {
case InputKeyLeft:
if(!context->is_attacking) {
if(context->time_between_cards > 0) {
context->time_between_cards -= 10;
if(context->time_between_cards > 8) {
if((context->time_between_cards - 10) > 8) {
context->time_between_cards -= 10;
}
}
}
break;
Expand Down

0 comments on commit fb27ed2

Please sign in to comment.