Skip to content

A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol

add ifdef for s3 wifi setup and fix led buitin pin for s3 devkit

Geo7becd4037616
diff --git a/platformio.ini b/platformio.ini
index f634f0b5..7c815eae 100644
--- a/platformio.ini
+++ b/platformio.ini
@@ -185,7 +185,7 @@ build_flags =
-DPROTECTED_PINS="\"3, 19, 20, 45, 46\""
; --- Builtin LED ---
- -DLED_PIN=21
+ -DLED_PIN=48
-DLED_TYPE_RGB=true
; --- OneWire ---
@@ -265,7 +265,6 @@ build_flags =
-DLED_PIN=21
-DLED_TYPE_RGB=true
-
; --- OneWire ---
-DONEWIRE_PIN=1
diff --git a/src/Vendors/S3WifiSetup.cpp b/src/Vendors/S3WifiSetup.cpp
index 07920bfc..b7d48036 100644
--- a/src/Vendors/S3WifiSetup.cpp
+++ b/src/Vendors/S3WifiSetup.cpp
@@ -1,3 +1,5 @@
+#if defined(DEVICE_M5STAMPS3) || defined(DEVICE_S3DEVKIT)
+
#include "S3WifiSetup.h"
#include <Preferences.h>
#include <WiFi.h>
@@ -58,4 +60,6 @@ bool setupS3Wifi() {
FastLED.clear(true);
return false;
-}
\ No newline at end of file
+}
+
+#endif
\ No newline at end of file
diff --git a/src/Vendors/S3WifiSetup.h b/src/Vendors/S3WifiSetup.h
index d433ef38..137d13f8 100644
--- a/src/Vendors/S3WifiSetup.h
+++ b/src/Vendors/S3WifiSetup.h
@@ -1,3 +1,7 @@
#pragma once
-bool setupS3Wifi();
\ No newline at end of file
+#if defined(DEVICE_M5STAMPS3) || defined(DEVICE_S3DEVKIT)
+
+bool setupS3Wifi();
+
+#endif
\ No newline at end of file