mirror of
https://github.com/HendrikRauh/dmx-interface.git
synced 2025-05-19 10:32:56 +00:00
NULL should not be used here
passing NULL to non-pointer argument fixed
This commit is contained in:
parent
c415ffa8b5
commit
48bf642536
1 changed files with 2 additions and 2 deletions
|
@ -78,7 +78,7 @@ void onGetConfig(AsyncWebServerRequest *request)
|
|||
|
||||
IPAddress ip = config.getUInt("ip", DEFAULT_IP);
|
||||
IPAddress subnet = config.getUInt("subnet", DEFAULT_SUBNET);
|
||||
IPAddress gateway = config.getUInt("gateway", NULL);
|
||||
IPAddress gateway = config.getUInt("gateway", 0);
|
||||
|
||||
JsonDocument doc;
|
||||
doc["connection"] = config.getUInt("connection", DEFAULT_CONNECTION);
|
||||
|
@ -87,7 +87,7 @@ void onGetConfig(AsyncWebServerRequest *request)
|
|||
doc["ip-method"] = config.getUInt("ip-method", DEFAULT_IP_METHOD);
|
||||
doc["ip"] = ip.toString();
|
||||
doc["subnet"] = subnet.toString();
|
||||
doc["gateway"] = gateway != NULL ? gateway.toString() : "";
|
||||
doc["gateway"] = gateway != 0 ? gateway.toString() : "";
|
||||
doc["universe-1"] = config.getUInt("universe-1", DEFAULT_UNIVERSE1);
|
||||
doc["direction-1"] = config.getUInt("direction-1", DEFAULT_DIRECTION1);
|
||||
doc["universe-2"] = config.getUInt("universe-2", DEFAULT_UNIVERSE2);
|
||||
|
|
Loading…
Add table
Reference in a new issue