Skip to content

Commit 3ebe36c

Browse files
authored
Revert "PSRAM discovery is now performed for all targets (#264)" (#266)
1 parent 304c7a0 commit 3ebe36c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

nanoFirmwareFlasher.Library/EspTool.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,19 @@ public Esp32DeviceInfo GetDeviceDetails(
246246
// FEATHER_S2's have PSRAM, so don't even bother
247247
psramIsAvailable = PSRamAvailability.Yes;
248248
}
249+
else if (name.Contains("ESP32-C3")
250+
|| name.Contains("ESP32-S3"))
251+
{
252+
// all ESP32-C3/S3 SDK config have support for PSRAM, so don't even bother
253+
psramIsAvailable = PSRamAvailability.Undetermined;
254+
}
249255
else
250256
{
251257
// if a target name wasn't provided, check for PSRAM
252-
if (targetName == null)
258+
// except for ESP32_C3 and S3
259+
if (targetName == null
260+
&& !name.Contains("ESP32-C3")
261+
&& !name.Contains("ESP32-S3"))
253262
{
254263
psramIsAvailable = FindPSRamAvailable();
255264
}

0 commit comments

Comments
 (0)