mirror of
https://github.com/EyeTrackVR/OpenIris.git
synced 2025-11-04 15:39:42 +08:00
fix: bug prevent device from connecting to saved wifi networks
- deviceConfig.load and initConfig need to be called before all config reads
This commit is contained in:
parent
9d927da8f5
commit
cd55c8c2ea
@ -89,6 +89,9 @@ void setup() {
|
|||||||
Serial.flush();
|
Serial.flush();
|
||||||
ledManager.begin();
|
ledManager.begin();
|
||||||
|
|
||||||
|
deviceConfig.initConfig();
|
||||||
|
deviceConfig.load();
|
||||||
|
|
||||||
#ifndef SIM_ENABLED
|
#ifndef SIM_ENABLED
|
||||||
deviceConfig.attach(cameraHandler);
|
deviceConfig.attach(cameraHandler);
|
||||||
#endif // SIM_ENABLED
|
#endif // SIM_ENABLED
|
||||||
@ -98,9 +101,6 @@ void setup() {
|
|||||||
WiFi.disconnect(true);
|
WiFi.disconnect(true);
|
||||||
#endif // ETVR_EYE_TRACKER_WEB_API
|
#endif // ETVR_EYE_TRACKER_WEB_API
|
||||||
|
|
||||||
deviceConfig.initConfig();
|
|
||||||
deviceConfig.load();
|
|
||||||
|
|
||||||
#ifdef ETVR_EYE_TRACKER_USB_API
|
#ifdef ETVR_EYE_TRACKER_USB_API
|
||||||
etvr_eye_tracker_usb_init();
|
etvr_eye_tracker_usb_init();
|
||||||
#endif // ETVR_EYE_TRACKER_USB_API
|
#endif // ETVR_EYE_TRACKER_USB_API
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user