Skip to content

Commit

Permalink
Revert "PSRAM discovery is now performed for all targets (#264)" (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
CoryCharlton committed Apr 28, 2024
1 parent 304c7a0 commit 3ebe36c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion nanoFirmwareFlasher.Library/EspTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,19 @@ public Esp32DeviceInfo GetDeviceDetails(
// FEATHER_S2's have PSRAM, so don't even bother
psramIsAvailable = PSRamAvailability.Yes;
}
else if (name.Contains("ESP32-C3")
|| name.Contains("ESP32-S3"))
{
// all ESP32-C3/S3 SDK config have support for PSRAM, so don't even bother
psramIsAvailable = PSRamAvailability.Undetermined;
}
else
{
// if a target name wasn't provided, check for PSRAM
if (targetName == null)
// except for ESP32_C3 and S3
if (targetName == null
&& !name.Contains("ESP32-C3")
&& !name.Contains("ESP32-S3"))
{
psramIsAvailable = FindPSRamAvailable();
}
Expand Down

0 comments on commit 3ebe36c

Please sign in to comment.