code cleanup

This commit is contained in:
Sebastian Hildebrandt 2020-11-10 17:49:06 +01:00
parent f4357e0f59
commit 5a4e222339
2 changed files with 2 additions and 2 deletions

View File

@ -498,7 +498,7 @@ function getCpu() {
const linesRpi = fs.readFileSync('/proc/cpuinfo').toString().split('\n');
const rPIRevision = util.decodePiCpuinfo(linesRpi);
if (rPIRevision.model.toLowerCase().indexOf('raspberry') >= 0) {
result.family = result.manufacturer
result.family = result.manufacturer;
result.manufacturer = rPIRevision.manufacturer;
result.brand = rPIRevision.processor;
result.revision = rPIRevision.revisionCode;

View File

@ -107,7 +107,7 @@ function system(callback) {
processor: rPIRevision.processor,
type: rPIRevision.type,
revision: rPIRevision.revision
}
};
}
// if (result.model === 'BCM2835' || result.model === 'BCM2708' || result.model === 'BCM2709' || result.model === 'BCM2835' || result.model === 'BCM2837') {