kopia lustrzana https://github.com/Aircoookie/WLED
				
				
				
			Add ability to configure settings PIN at compile time
							rodzic
							
								
									548736f432
								
							
						
					
					
						commit
						4f1965fbaa
					
				|  | @ -214,6 +214,10 @@ using PSRAMDynamicJsonDocument = BasicJsonDocument<PSRAM_Allocator>; | |||
|   #define WLED_AP_PASS DEFAULT_AP_PASS | ||||
| #endif | ||||
| 
 | ||||
| #ifndef WLED_PIN | ||||
|   #define WLED_PIN "" | ||||
| #endif | ||||
| 
 | ||||
| #ifndef SPIFFS_EDITOR_AIRCOOOKIE | ||||
|   #error You are not using the Aircoookie fork of the ESPAsyncWebserver library.\ | ||||
|   Using upstream puts your WiFi password at risk of being served by the filesystem.\ | ||||
|  | @ -556,10 +560,10 @@ WLED_GLOBAL byte macroLongPress[WLED_MAX_BUTTONS]     _INIT({0}); | |||
| WLED_GLOBAL byte macroDoublePress[WLED_MAX_BUTTONS]   _INIT({0}); | ||||
| 
 | ||||
| // Security CONFIG
 | ||||
| WLED_GLOBAL bool otaLock     _INIT(false);  // prevents OTA firmware updates without password. ALWAYS enable if system exposed to any public networks
 | ||||
| WLED_GLOBAL bool wifiLock    _INIT(false);  // prevents access to WiFi settings when OTA lock is enabled
 | ||||
| WLED_GLOBAL bool aOtaEnabled _INIT(true);   // ArduinoOTA allows easy updates directly from the IDE. Careful, it does not auto-disable when OTA lock is on
 | ||||
| WLED_GLOBAL char settingsPIN[5] _INIT("");  // PIN for settings pages
 | ||||
| WLED_GLOBAL bool otaLock        _INIT(false);     // prevents OTA firmware updates without password. ALWAYS enable if system exposed to any public networks
 | ||||
| WLED_GLOBAL bool wifiLock       _INIT(false);     // prevents access to WiFi settings when OTA lock is enabled
 | ||||
| WLED_GLOBAL bool aOtaEnabled    _INIT(true);      // ArduinoOTA allows easy updates directly from the IDE. Careful, it does not auto-disable when OTA lock is on
 | ||||
| WLED_GLOBAL char settingsPIN[5] _INIT(WLED_PIN);  // PIN for settings pages
 | ||||
| WLED_GLOBAL bool correctPIN     _INIT(true); | ||||
| WLED_GLOBAL unsigned long lastEditTime _INIT(0); | ||||
| 
 | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 Blaž Kristan
						Blaž Kristan