mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
AMT manager improvements.
This commit is contained in:
parent
5290732c6f
commit
0e23eaa881
2 changed files with 3 additions and 8 deletions
|
@ -948,11 +948,12 @@ module.exports.CreateAmtManager = function(parent) {
|
|||
if (changes == true) {
|
||||
var t = Clone(dev.cira.xxEnvironementDetection);
|
||||
t['DetectionStrings'] = editEnvironmentDetectionTmp;
|
||||
dev.cira.envclear = (editEnvironmentDetectionTmp.length == 0);
|
||||
dev.amtstack.Put('AMT_EnvironmentDetectionSettingData', t, function (stack, name, responses, status) {
|
||||
const dev = stack.dev;
|
||||
if (isAmtDeviceValid(dev) == false) return; // Device no longer exists, ignore this request.
|
||||
if (status != 200) { dev.consoleMsg("Failed to set environement detection (" + status + ")."); removeAmtDevice(dev); return; }
|
||||
dev.consoleMsg("Environment detection set.");
|
||||
if (dev.cira.envclear) { dev.consoleMsg("Environment detection cleared."); } else { dev.consoleMsg("Environment detection set."); }
|
||||
devTaskCompleted(dev);
|
||||
}, 0, 1);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue