From df54c04d211ca65a36b331c3a04ac7d8618690aa Mon Sep 17 00:00:00 2001 From: Hendrik Rauh <114620133+HendrikRauh@users.noreply.github.com> Date: Fri, 20 Dec 2024 21:26:42 +0100 Subject: [PATCH] fixed NULL pointer warning warning: passing NULL to non-pointer argument 2 of 'uint32_t Preferences::getUInt(const char*, uint32_t)' [-Wconversion-null] --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 40b1153..f985f13 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -159,7 +159,7 @@ void setup() // Default IP as defined in standard https://art-net.org.uk/downloads/art-net.pdf, page 13 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); config.end();