File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff line change 1+ "PSRAM not detected" fatal error screen (shown if a wrong f/w variant was flashed).
You can’t perform that action at this time.
0 commit comments