File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
examples/Settings/MultiWiFi Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -46,12 +46,7 @@ void SinricProWiFiSettings::printSettings() const {
4646}
4747
4848void SinricProWiFiSettings::saveToFile () {
49-
50- #if defined(ESP8266)
51- File file = fs.open (configFileName, " w" );
52- #elif defined(ESP32)
53- File file = fs.open (configFileName, FILE_WRITE);
54- #endif
49+ File file = fs.open (configFileName, " w" );
5550
5651 if (file) {
5752 file.write (reinterpret_cast <const uint8_t *>(&wifiSettings), sizeof (wifiSettings));
@@ -60,11 +55,7 @@ void SinricProWiFiSettings::saveToFile() {
6055}
6156
6257bool SinricProWiFiSettings::loadFromFile () {
63- #if defined(ESP8266)
64- File file = fs.open (configFileName, " r" );
65- #elif defined(ESP32)
66- File file = fs.open (configFileName, FILE_READ);
67- #endif
58+ File file = fs.open (configFileName, " r" );
6859
6960 if (file && file.size () == sizeof (wifiSettings)) {
7061 file.read (reinterpret_cast <uint8_t *>(&wifiSettings), sizeof (wifiSettings));
You can’t perform that action at this time.
0 commit comments