Browse Source

fixed define error

main
lumapu 2 months ago
parent
commit
991de14d04
  1. 2
      src/web/RestApi.h

2
src/web/RestApi.h

@ -1093,6 +1093,7 @@ class RestApi {
mApp->saveSettings(false); // without reboot mApp->saveSettings(false); // without reboot
mApp->setupStation(); mApp->setupStation();
} }
#if defined(ETHERNET)
else if(F("save_eth") == jsonIn[F("cmd")]) { else if(F("save_eth") == jsonIn[F("cmd")]) {
mConfig->sys.eth.enabled = jsonIn[F("en")].as<bool>(); mConfig->sys.eth.enabled = jsonIn[F("en")].as<bool>();
mConfig->sys.eth.pinCs = jsonIn[F("cs")].as<uint8_t>(); mConfig->sys.eth.pinCs = jsonIn[F("cs")].as<uint8_t>();
@ -1103,6 +1104,7 @@ class RestApi {
mConfig->sys.eth.pinRst = jsonIn[F("reset")].as<uint8_t>(); mConfig->sys.eth.pinRst = jsonIn[F("reset")].as<uint8_t>();
mApp->saveSettings(true); mApp->saveSettings(true);
} }
#endif
else if(F("save_iv") == jsonIn[F("cmd")]) { else if(F("save_iv") == jsonIn[F("cmd")]) {
Inverter<> *iv; Inverter<> *iv;

Loading…
Cancel
Save