Skip to content

Commit

Permalink
re-init existing instances
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalkbrenner committed Oct 30, 2024
1 parent b8630ec commit 444694b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion LibDmd/Output/ZeDMD/ZeDMD.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion LibDmd/Output/ZeDMD/ZeDMDHD.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion LibDmd/Output/ZeDMD/ZeDMDHDWiFi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
4 changes: 2 additions & 2 deletions LibDmd/Output/ZeDMD/ZeDMDWiFi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 444694b

Please sign in to comment.