From 444694b7088c1cf01e92d9cf6a8512946c6e1390 Mon Sep 17 00:00:00 2001 From: Markus Kalkbrenner Date: Wed, 30 Oct 2024 23:55:41 +0100 Subject: [PATCH] re-init existing instances --- LibDmd/Output/ZeDMD/ZeDMD.cs | 2 +- LibDmd/Output/ZeDMD/ZeDMDHD.cs | 2 +- LibDmd/Output/ZeDMD/ZeDMDHDWiFi.cs | 2 +- LibDmd/Output/ZeDMD/ZeDMDWiFi.cs | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/LibDmd/Output/ZeDMD/ZeDMD.cs b/LibDmd/Output/ZeDMD/ZeDMD.cs index 9ab632436..e1ddf56cd 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 2b57ae31b..b6846f68f 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 bd3e5302d..36d868e3d 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 5329a8dba..1057f1237 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; }