A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol
C arduinobluetoothcan-busdebuggingeepromesp32flipperzerogpiohardware-hackingi2cjtagopenocdprotocolspwmradiorfidspisubghzuartwifi
adapt stickcplus2 build flag to handle sticks3 board
Geo51abdbe6894a
diff --git a/src/Config/WifiTypeConfigurator.cpp b/src/Config/WifiTypeConfigurator.cppindex 47d57a7f..2cb46d3f 100644--- a/src/Config/WifiTypeConfigurator.cpp+++ b/src/Config/WifiTypeConfigurator.cpp@@ -8,7 +8,7 @@ std::string WifiTypeConfigurator::configure(TerminalTypeEnum& terminalType) {#if defined(DEVICE_CARDPUTER)// Use this standalone setup for nowsetupCardputerWifi(); // endless loop until a valid WiFi is selected and connected- #elif defined(DEVICE_M5STICK)+ #elif defined(DEVICE_M5STICK) || defined(DEVICE_STICKS3)// Use this standalone setup for nowsetupStickWifi(); // check stored creds#elif defined(DEVICE_TEMBEDS3) || defined(DEVICE_TEMBEDS3CC1101)diff --git a/src/Inputs/StickInput.cpp b/src/Inputs/StickInput.cppindex 5d06ce32..09bc45f3 100644--- a/src/Inputs/StickInput.cpp+++ b/src/Inputs/StickInput.cpp@@ -1,4 +1,4 @@-#ifdef DEVICE_M5STICK+#if defined(DEVICE_M5STICK) || defined(DEVICE_STICKS3)#include "StickInput.h"diff --git a/src/Inputs/StickInput.h b/src/Inputs/StickInput.hindex cf3b0c41..751d76f7 100644--- a/src/Inputs/StickInput.h+++ b/src/Inputs/StickInput.h@@ -1,6 +1,6 @@#pragma once-#ifdef DEVICE_M5STICK+#if defined(DEVICE_M5STICK) || defined(DEVICE_STICKS3)#include <M5Unified.h>diff --git a/src/Vendors/StickWifiSetup.cpp b/src/Vendors/StickWifiSetup.cppindex 9269bca9..30fd1697 100644--- a/src/Vendors/StickWifiSetup.cpp+++ b/src/Vendors/StickWifiSetup.cpp@@ -1,4 +1,4 @@-#ifdef DEVICE_M5STICK+#if defined(DEVICE_M5STICK) || defined(DEVICE_STICKS3)#include "StickWifiSetup.h"diff --git a/src/Vendors/StickWifiSetup.h b/src/Vendors/StickWifiSetup.hindex 9ed43b4d..b6938b68 100644--- a/src/Vendors/StickWifiSetup.h+++ b/src/Vendors/StickWifiSetup.h@@ -1,6 +1,6 @@#pragma one-#ifdef DEVICE_M5STICK+#if defined(DEVICE_M5STICK) || defined(DEVICE_STICKS3)#define NVS_SSID_KEY "ssid"#define NVS_PASS_KEY "pass"diff --git a/src/Views/M5DeviceView.cpp b/src/Views/M5DeviceView.cppindex 0464d002..3a0dd0af 100644--- a/src/Views/M5DeviceView.cpp+++ b/src/Views/M5DeviceView.cpp@@ -1,4 +1,4 @@-#if defined(DEVICE_CARDPUTER) || defined(DEVICE_M5STICK)+#if defined(DEVICE_CARDPUTER) || defined(DEVICE_M5STICK) || defined(DEVICE_STICKS3)#include "M5DeviceView.h"diff --git a/src/Views/M5DeviceView.h b/src/Views/M5DeviceView.hindex c903f297..0fa2493d 100644--- a/src/Views/M5DeviceView.h+++ b/src/Views/M5DeviceView.h@@ -1,6 +1,6 @@#pragma once-#if defined(DEVICE_CARDPUTER) || defined(DEVICE_M5STICK)+#if defined(DEVICE_CARDPUTER) || defined(DEVICE_M5STICK) || defined(DEVICE_STICKS3)#include <algorithm>#include <M5Unified.h>diff --git a/src/main.cpp b/src/main.cppindex beb20941..e4bbac36 100644--- a/src/main.cpp+++ b/src/main.cpp@@ -55,8 +55,8 @@ and then launches the main loop through the ActionDispatcher.void setup() {- #if DEVICE_M5STICK- // Setup the M5stickCplus2+ #if defined(DEVICE_M5STICK) || defined(DEVICE_STICKS3)+ // Setup the Stick#include <M5Unified.h>auto cfg = M5.config();M5.begin(cfg);