Merge pull request #303 from edgarlopez/edgarlopez-patch-1

Update sensorsUtil.js
This commit is contained in:
Vasilii
2025-12-24 14:35:09 +03:00
committed by GitHub

View File

@@ -24,6 +24,7 @@ export default class SensorsUtil extends CommandLineUtil {
let lineRemoved = this._output.filter(l => l.trim() !== ',').join('\n');
let errorRemoved = lineRemoved.replace(/ERROR.*Can't read/, "");
errorRemoved = errorRemoved.replace(/ERROR.*I\/O error/, "");
errorRemoved = errorRemoved.replace(/NaN/, "0");
data = JSON.parse(errorRemoved);
} catch (e) {
logError(e);