forgot trimResults for printers
Signed-off-by: si458 <simonsmith5521@gmail.com>
si458 committed
May 28, 2026 at 02:28 UTC
acc57b4c8778a5050635c80674654c011fe6be30
1 file changed
+12
agents/meshcore.js
+12
@@ -535,6 +535,18 @@ function addAmtEvent(msg) {
535
if (obj.showamtevent) { require('MeshAgent').SendCommand({ action: 'msg', type: 'console', value: e }); }
536
}
537
function zeroPad(num, size) { var s = '000000000' + num; return s.substr(s.length - size); }
538
+function trimResults(val) {
539
+ var i, x;
540
+ for (i = 0; i < val.length; ++i) {
541
+ for (x in val[i]) {
542
+ if (x.startsWith('_')) {
543
+ delete val[i][x];
544
+ } else {
545
+ if (val[i][x] == null || val[i][x] == 0) { delete val[i][x]; }
546
+ }
547
+ }
548
+ }
549
+}
550
551
552
// Create Secure IPC for Diagnostic Agent Communications