Add ReconnectThread to reconnect to PLC and Keyboard on the fly
Test / Run tests (push) Successful in 26s
Test / Run tests (push) Successful in 26s
This commit is contained in:
@@ -39,9 +39,13 @@ namespace PamhagenSysCtrl.Helpers {
|
||||
throw new IOException($"Unable to SetDataCallback for XBE keyboard: {res}");
|
||||
if ((res = XbeDevice.SetErrorCallback(this)) != 0)
|
||||
throw new IOException($"Unable to SetErrorCallback for XBE keyboard: {res}");
|
||||
|
||||
SetBacklight(Color.FromRgb(1, 1, 1));
|
||||
}
|
||||
|
||||
public void Dispose() {
|
||||
GC.SuppressFinalize(this);
|
||||
SetBacklight(Color.FromRgb(1, 1, 1));
|
||||
XbeDevice?.CloseInterface();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user