mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-22 04:33:16 +03:00
Fixed Intel AMT IDER exception.
This commit is contained in:
parent
072924ce69
commit
60af1b6a24
@ -98,7 +98,7 @@ module.exports = function CreateAmtRemoteIder() {
|
||||
// Private method
|
||||
obj.ProcessData = function (data) {
|
||||
obj.bytesFromAmt += data.length;
|
||||
if (obj.acc == null) { obj.acc = data; } else { obj.acc = Buffer.concat(obj.acc, data); }
|
||||
if (obj.acc == null) { obj.acc = data; } else { obj.acc = Buffer.concat([obj.acc, data]); }
|
||||
if (obj.debug) console.log('IDER-ProcessData', obj.acc.length, obj.acc.toString('hex'));
|
||||
|
||||
// Process as many commands as possible
|
||||
|
@ -152,7 +152,7 @@ module.exports.CreateAmtRemoteIder = function (webserver, meshcentral) {
|
||||
obj.ProcessData = function (data) {
|
||||
data = Buffer.from(data, 'binary');
|
||||
obj.bytesFromAmt += data.length;
|
||||
if (obj.acc == null) { obj.acc = data; } else { obj.acc = Buffer.concat(obj.acc, data); }
|
||||
if (obj.acc == null) { obj.acc = data; } else { obj.acc = Buffer.concat([obj.acc, data]); }
|
||||
if (obj.debug) console.log('IDER-ProcessData', obj.acc.length, obj.acc.toString('hex'));
|
||||
|
||||
// Process as many commands as possible
|
||||
|
Loading…
Reference in New Issue
Block a user