From db0f713ea8f66a42960326c3d326b57453aee787 Mon Sep 17 00:00:00 2001 From: arfrie22 <43021241+arfrie22@users.noreply.github.com> Date: Thu, 18 Jul 2024 14:40:58 -0400 Subject: [PATCH] fixed load hardware mac --- OpenSprinkler.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/OpenSprinkler.cpp b/OpenSprinkler.cpp index 806e506d..739793f5 100644 --- a/OpenSprinkler.cpp +++ b/OpenSprinkler.cpp @@ -707,8 +707,6 @@ bool OpenSprinkler::load_hardware_mac(unsigned char* mac, bool wired) { mac[4] = 0x31; mac[5] = iopts[IOPT_DEVICE_ID]; - if (m_server == NULL) return true; - if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) == 0) return true; // Returns the mac address of the first interface if multiple active