Skip to content

Commit

Permalink
Merge pull request #80 from derskythe/feat/new-buttons-in-fw
Browse files Browse the repository at this point in the history
Feat/new buttons in fw
  • Loading branch information
derskythe authored Sep 20, 2024
2 parents ef60d7b + e7645bc commit cfaecb5
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 102 deletions.
7 changes: 7 additions & 0 deletions .deepsource.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version = 1

[[analyzers]]
name = "cxx"

[[transformers]]
name = "clang-format"
59 changes: 0 additions & 59 deletions helpers/gui_top_buttons.c

This file was deleted.

35 changes: 0 additions & 35 deletions helpers/gui_top_buttons.h

This file was deleted.

2 changes: 1 addition & 1 deletion scenes/subbrute_scene_load_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void subbrute_scene_load_file_on_enter(void* context) {
}
// Ready to run!
FURI_LOG_I(TAG, "Ready to run");
res = true;
load_result = true;
}
}

Expand Down
2 changes: 1 addition & 1 deletion subbrute_i.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include "views/subbrute_attack_view.h"
#include "views/subbrute_main_view.h"

#define SUB_BRUTE_FORCER_VERSION "Sub-GHz BruteForcer 3.E"
#define SUB_BRUTE_FORCER_VERSION "Sub-GHz BruteForcer 3.F"

#ifdef FURI_DEBUG
//#define SUBBRUTE_FAST_TRACK false
Expand Down
5 changes: 2 additions & 3 deletions views/subbrute_attack_view.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "subbrute_attack_view.h"
#include "../subbrute_i.h"
#include "../helpers/gui_top_buttons.h"

#include <input/input.h>
#include <gui/elements.h>
Expand Down Expand Up @@ -310,8 +309,8 @@ void subbrute_attack_view_draw(Canvas* canvas, void* context) {
elements_button_left(canvas, "-1");
elements_button_right(canvas, "+1");
elements_button_center(canvas, "Start");
elements_button_top_left(canvas, "Save");
elements_button_top_right(canvas, "Resend");
elements_button_up(canvas, "Save");
elements_button_down(canvas, "Resend");
} else {
// canvas_draw_icon_animation
const uint8_t icon_h_offset = 0;
Expand Down
5 changes: 2 additions & 3 deletions views/subbrute_main_view.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "subbrute_main_view.h"
#include "../subbrute_i.h"
#include "../helpers/gui_top_buttons.h"

#include <input/input.h>
#include <gui/elements.h>
Expand Down Expand Up @@ -126,9 +125,9 @@ void subbrute_main_view_draw_is_byte_selected(Canvas* canvas, SubBruteMainViewMo

// Switch to another mode
if(model->two_bytes) {
elements_button_top_left(canvas, "One byte");
elements_button_up(canvas, "One byte");
} else {
elements_button_top_left(canvas, "Two bytes");
elements_button_up(canvas, "Two bytes");
}
}

Expand Down

0 comments on commit cfaecb5

Please sign in to comment.