forgot to fix meshctrl for json output from getDeviceDetails

Signed-off-by: Simon Smith <simonsmith5521@gmail.com>
This commit is contained in:
Simon Smith 2025-06-19 16:23:29 +01:00
parent cadc0d03d2
commit 9bc2b3f4cf

View File

@ -2592,7 +2592,11 @@ function serverConnect() {
break; break;
} }
case 'getDeviceDetails': { case 'getDeviceDetails': {
console.log(data.data); if (args.json) {
console.log(JSON.stringify(data.data));
} else {
console.log(data.data);
}
process.exit(); process.exit();
} }
case 'report': { case 'report': {