Skip to content

Commit a4e6773

Browse files
committed
Add fatal PSRAM error screen
1 parent 6d9e722 commit a4e6773

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

ats-mini/ats-mini.ino

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,19 @@ void setup()
180180
// Initialize flash file system
181181
diskInit();
182182

183+
if(!ESP.getPsramSize()) {
184+
ledcWrite(PIN_LCD_BL, 255); // Default value 255 = 100%
185+
tft.setTextSize(2);
186+
tft.setTextColor(TH.text_warn, TH.bg);
187+
tft.println("PSRAM not detected");
188+
#ifdef CONFIG_SPIRAM_MODE_OCT
189+
tft.println("(try the QSPI f/w version)");
190+
#else
191+
tft.println("(try the OSPI f/w version)");
192+
#endif
193+
while(1);
194+
}
195+
183196
// Check for SI4732 connected on I2C interface
184197
// If the SI4732 is not detected, then halt with no further processing
185198
rx.setI2CFastModeCustom(800000UL);

changelog/+psram-error.added.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"PSRAM not detected" fatal error screen (shown if a wrong f/w variant was flashed).

0 commit comments

Comments
 (0)