From 3644af6e7a5434013ac5b022c22b050476588a07 Mon Sep 17 00:00:00 2001 From: Pirata <104320209+bmorcelli@users.noreply.github.com> Date: Mon, 28 Oct 2024 18:08:44 +0000 Subject: [PATCH] fixing fixes foxes foxing --- README.md | 2 +- lib/M5GFX/src/lgfx/v1/LGFXBase.hpp | 1 + src/core/menu_items/WifiMenu.cpp | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index aae564277..2c4f1fdc3 100644 --- a/README.md +++ b/README.md @@ -177,7 +177,7 @@ Also, [read our FAQ](https://github.com/pr3y/Bruce/wiki/FAQ) | CYD-2432S028 | :ok: | :ok: | :ok: | :x: | :ok: | :x: | :ok: | :x: | :x: | :x: | -*LITE_MODE*: TelNet, SSH, DPWO, WireGuard, BLEBacon, BLEScan and OpenHaystack are NOT available for M5Launcher Compatibility +*LITE_MODE*: TelNet, SSH, DPWO, WireGuard, ScanHosts, RawSniffer, Brucegotchi, BLEBacon, BLEScan and OpenHaystack are NOT available for M5Launcher Compatibility ## :sparkles: Why and how does it look? diff --git a/lib/M5GFX/src/lgfx/v1/LGFXBase.hpp b/lib/M5GFX/src/lgfx/v1/LGFXBase.hpp index 3c4a51afa..e52359c60 100644 --- a/lib/M5GFX/src/lgfx/v1/LGFXBase.hpp +++ b/lib/M5GFX/src/lgfx/v1/LGFXBase.hpp @@ -683,6 +683,7 @@ namespace lgfx int32_t fontWidth(void) const { return (int32_t)(_font_metrics.width * _text_style.size_x); } int32_t textLength(const char *string, int32_t width); int32_t textWidth(const char *string) { return textWidth(string, _font); }; + int32_t textWidth(const char *string, uint8_t size) { return textWidth(string, _font); }; int32_t textWidth(const char *string, const IFont* font); [[deprecated("use IFont")]] diff --git a/src/core/menu_items/WifiMenu.cpp b/src/core/menu_items/WifiMenu.cpp index 895dc6435..0731bcba7 100644 --- a/src/core/menu_items/WifiMenu.cpp +++ b/src/core/menu_items/WifiMenu.cpp @@ -33,11 +33,11 @@ void WifiMenu::optionsMenu() { options.push_back({"TelNET", [=]() { telnet_setup(); }}); options.push_back({"SSH", [=]() { ssh_setup(); }}); options.push_back({"DPWO", [=]() { dpwo_setup(); }}); -#endif options.push_back({"Raw Sniffer", [=]() { sniffer_setup(); }}); +#endif options.push_back({"Evil Portal", [=]() { startEvilPortal(); }}); - options.push_back({"Scan Hosts", [=]() { local_scan_setup(); }}); #ifndef LITE_VERSION + options.push_back({"Scan Hosts", [=]() { local_scan_setup(); }}); options.push_back({"Wireguard", [=]() { wg_setup(); }}); options.push_back({"Brucegotchi", [=]() { brucegotchi_start(); }}); #endif