mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-12 14:28:36 -07:00
Format
This commit is contained in:
@@ -16,9 +16,9 @@
|
||||
|
||||
#include <xtreme.h>
|
||||
|
||||
#define UART_CH \
|
||||
#define UART_CH \
|
||||
(XTREME_SETTINGS()->uart_esp_channel == UARTDefault ? FuriHalUartIdUSART1 : \
|
||||
FuriHalUartIdLPUART1)
|
||||
FuriHalUartIdLPUART1)
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -18,6 +18,6 @@
|
||||
|
||||
#include <xtreme.h>
|
||||
|
||||
#define UART_CH \
|
||||
#define UART_CH \
|
||||
(XTREME_SETTINGS()->uart_esp_channel == UARTDefault ? FuriHalUartIdUSART1 : \
|
||||
FuriHalUartIdLPUART1)
|
||||
FuriHalUartIdLPUART1)
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user