Skip to content

Commit

Permalink
feat: deauth screens refresh improved
Browse files Browse the repository at this point in the history
  • Loading branch information
Otrebor671 committed Aug 29, 2024
1 parent 8c6a44a commit 59284d7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions firmware/main/apps/wifi/deauth/deauth_screens.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void deauth_display_attacking_animation() {

void deauth_display_menu(uint16_t current_item,
menu_stadistics_t menu_stadistics) {
oled_screen_clear();
oled_screen_clear_buffer();
oled_screen_display_text("< Exit", 0, 0, OLED_DISPLAY_NORMAL);

int position = 1;
Expand Down Expand Up @@ -95,12 +95,13 @@ void deauth_display_menu(uint16_t current_item,
}
position = position + 2;
}
oled_screen_display_show();
}

void deauth_display_scanned_ap(wifi_ap_record_t* ap_records,
uint16_t scanned_records,
uint16_t current_option) {
oled_screen_clear();
oled_screen_clear_buffer();
oled_screen_display_text("< Back", 0, 0, OLED_DISPLAY_NORMAL);

ap_count = scanned_records;
Expand All @@ -122,11 +123,12 @@ void deauth_display_scanned_ap(wifi_ap_record_t* ap_records,
(i + 1) - current_option, OLED_DISPLAY_NORMAL);
}
}
oled_screen_display_show();
}

void deauth_display_attacks(uint16_t current_item,
menu_stadistics_t menu_stadistics) {
oled_screen_clear();
oled_screen_clear_buffer();
oled_screen_display_text("< Back", 0, 0, OLED_DISPLAY_NORMAL);

for (uint16_t i = 0; i < ATTACKSCOUNT; i++) {
Expand All @@ -145,11 +147,12 @@ void deauth_display_attacks(uint16_t current_item,
oled_screen_display_text(item, 0, i + ITEMOFFSET, OLED_DISPLAY_NORMAL);
}
}
oled_screen_display_show();
}

void deauth_display_captive_portals(uint16_t current_item,
menu_stadistics_t menu_stadistics) {
oled_screen_clear();
oled_screen_clear_buffer();
oled_screen_display_text("< Back", 0, 0, OLED_DISPLAY_NORMAL);

for (uint16_t i = 0; i < CAPTIVEPORTALCOUNT; i++) {
Expand All @@ -168,6 +171,7 @@ void deauth_display_captive_portals(uint16_t current_item,
oled_screen_display_text(item, 0, i + ITEMOFFSET, OLED_DISPLAY_NORMAL);
}
}
oled_screen_display_show();
}

void deauth_display_captive_waiting() {
Expand Down

0 comments on commit 59284d7

Please sign in to comment.