fixed NULL pointer warning

warning: passing NULL to non-pointer argument 2 of 'uint32_t Preferences::getUInt(const char*, uint32_t)' [-Wconversion-null]
This commit is contained in:
Hendrik Rauh 2024-12-20 21:26:42 +01:00
parent 3ecc9e33c0
commit df54c04d21

View file

@ -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();