diff --git a/LibDmd/Output/ZeDMD/ZeDMD.cs b/LibDmd/Output/ZeDMD/ZeDMD.cs index 9ab63243..e1ddf56c 100644 --- a/LibDmd/Output/ZeDMD/ZeDMD.cs +++ b/LibDmd/Output/ZeDMD/ZeDMD.cs @@ -28,9 +28,9 @@ public static ZeDMD GetInstance(bool debug, int brightness, int rgbOrder, string if (_instance == null) { _instance = new ZeDMD { Debug = debug, Brightness = brightness, RgbOrder = rgbOrder, Port = port }; - _instance.Init(); } + _instance.Init(); return _instance; } diff --git a/LibDmd/Output/ZeDMD/ZeDMDHD.cs b/LibDmd/Output/ZeDMD/ZeDMDHD.cs index 2b57ae31..b6846f68 100644 --- a/LibDmd/Output/ZeDMD/ZeDMDHD.cs +++ b/LibDmd/Output/ZeDMD/ZeDMDHD.cs @@ -24,9 +24,9 @@ public static ZeDMDHD GetInstance(bool debug, int brightness, int rgbOrder, stri { if (_instance == null) { _instance = new ZeDMDHD { Debug = debug, Brightness = brightness, RgbOrder = rgbOrder, Port = port, ScaleRgb24 = scaleRgb24 }; - _instance.Init(); } + _instance.Init(); return _instance; } diff --git a/LibDmd/Output/ZeDMD/ZeDMDHDWiFi.cs b/LibDmd/Output/ZeDMD/ZeDMDHDWiFi.cs index bd3e5302..36d868e3 100644 --- a/LibDmd/Output/ZeDMD/ZeDMDHDWiFi.cs +++ b/LibDmd/Output/ZeDMD/ZeDMDHDWiFi.cs @@ -24,9 +24,9 @@ public static ZeDMDHDWiFi GetInstance(bool debug, int brightness, int rgbOrder, { if (_instance == null) { _instance = new ZeDMDHDWiFi { Debug = debug, Brightness = brightness, RgbOrder = rgbOrder, Port = port, ScaleRgb24 = scaleRgb24, WifiAddress = wifiAddress, WifiPort = wifiPort, WifiSsid = wifiSsid, WifiPassword = wifiPassword }; - _instance.Init(); } + _instance.Init(); return _instance; } diff --git a/LibDmd/Output/ZeDMD/ZeDMDWiFi.cs b/LibDmd/Output/ZeDMD/ZeDMDWiFi.cs index 5329a8db..1057f123 100644 --- a/LibDmd/Output/ZeDMD/ZeDMDWiFi.cs +++ b/LibDmd/Output/ZeDMD/ZeDMDWiFi.cs @@ -27,9 +27,9 @@ public static ZeDMDWiFi GetInstance(bool debug, int brightness, int rgbOrder, st if (_instance == null) { _instance = new ZeDMDWiFi { Debug = debug, Brightness = brightness, RgbOrder = rgbOrder, Port = port, WifiAddress = wifiAddress, WifiPort = wifiPort, WifiSsid = wifiSsid, WifiPassword = wifiPassword }; - _instance.Init(); } - + + _instance.Init(); return _instance; }