This commit is contained in:
Willy-JL
2023-07-28 00:31:58 +02:00
parent 27fb23d4ce
commit 586d63f223
7 changed files with 25 additions and 16 deletions

View File

@@ -16,9 +16,9 @@
#include <xtreme.h>
#define UART_CH \
#define UART_CH \
(XTREME_SETTINGS()->uart_esp_channel == UARTDefault ? FuriHalUartIdUSART1 : \
FuriHalUartIdLPUART1)
FuriHalUartIdLPUART1)
#pragma once

View File

@@ -15,9 +15,9 @@
#include "FlipperZeroWiFiDeauthModuleDefines.h"
#define UART_CH \
#define UART_CH \
(XTREME_SETTINGS()->uart_esp_channel == UARTDefault ? FuriHalUartIdUSART1 : \
FuriHalUartIdLPUART1)
FuriHalUartIdLPUART1)
#define DEAUTH_APP_DEBUG 0

View File

@@ -2,9 +2,9 @@
#include "esp_flasher_uart.h"
#include <xtreme.h>
#define UART_CH \
#define UART_CH \
(XTREME_SETTINGS()->uart_esp_channel == UARTDefault ? FuriHalUartIdUSART1 : \
FuriHalUartIdLPUART1)
FuriHalUartIdLPUART1)
#define BAUDRATE (115200)
struct EspFlasherUart {

View File

@@ -19,9 +19,9 @@
#define NUM_MENU_ITEMS (4)
#define EVIL_PORTAL_TEXT_BOX_STORE_SIZE (4096)
#define UART_CH \
#define UART_CH \
(XTREME_SETTINGS()->uart_esp_channel == UARTDefault ? FuriHalUartIdUSART1 : \
FuriHalUartIdLPUART1)
FuriHalUartIdLPUART1)
#define SET_HTML_CMD "sethtml"
#define SET_AP_CMD "setap"

View File

@@ -14,9 +14,9 @@
#include <xtreme.h>
#define UART_CH \
#define UART_CH \
(XTREME_SETTINGS()->uart_esp_channel == UARTDefault ? FuriHalUartIdUSART1 : \
FuriHalUartIdLPUART1)
FuriHalUartIdLPUART1)
#define NUM_MENU_ITEMS (11)

View File

@@ -18,6 +18,6 @@
#include <xtreme.h>
#define UART_CH \
#define UART_CH \
(XTREME_SETTINGS()->uart_esp_channel == UARTDefault ? FuriHalUartIdUSART1 : \
FuriHalUartIdLPUART1)
FuriHalUartIdLPUART1)

View File

@@ -165,9 +165,11 @@ static void menu_draw_callback(Canvas* canvas, void* _model) {
if(i == 0) {
width += 6;
height += 6;
elements_bold_rounded_frame(canvas, pos_x - width / 2, pos_y - height / 2, width, height + 4);
elements_bold_rounded_frame(
canvas, pos_x - width / 2, pos_y - height / 2, width, height + 4);
canvas_set_font(canvas, FontBatteryPercent);
canvas_draw_str_aligned(canvas, pos_x, pos_y + height / 2 + 1, AlignCenter, AlignBottom, "START");
canvas_draw_str_aligned(
canvas, pos_x, pos_y + height / 2 + 1, AlignCenter, AlignBottom, "START");
canvas_draw_rframe(canvas, 0, 0, 128, 18, 3);
canvas_draw_line(canvas, 60, 18, 64, 26);
@@ -178,11 +180,18 @@ static void menu_draw_callback(Canvas* canvas, void* _model) {
canvas_set_color(canvas, ColorBlack);
canvas_set_font(canvas, FontPrimary);
canvas_draw_str_aligned(canvas, pos_x, pos_y - height / 2 - 7, AlignCenter, AlignBottom, item->label);
canvas_draw_str_aligned(
canvas,
pos_x,
pos_y - height / 2 - 7,
AlignCenter,
AlignBottom,
item->label);
} else {
pos_x += (width + 6) * i;
pos_y += 2;
elements_slightly_rounded_frame(canvas, pos_x - width / 2, pos_y - height / 2, width, height);
elements_slightly_rounded_frame(
canvas, pos_x - width / 2, pos_y - height / 2, width, height);
}
if(item->icon) {
canvas_draw_icon_animation(