system() Raspberry Pi 5 name fix
This commit is contained in:
+2
-2
@@ -993,7 +993,7 @@ function decodePiCpuinfo(lines) {
|
||||
'13': '400',
|
||||
'14': 'CM4',
|
||||
'15': 'CM4S',
|
||||
'17': '5B',
|
||||
'17': '5',
|
||||
};
|
||||
|
||||
const revisionCode = getValue(lines, 'revision', ':', true);
|
||||
@@ -1052,7 +1052,7 @@ function getRpiGpu() {
|
||||
|
||||
const rpi = decodePiCpuinfo(cpuinfo);
|
||||
if (rpi.type === '4B' || rpi.type === 'CM4' || rpi.type === 'CM4S' || rpi.type === '400') { return 'VideoCore VI'; }
|
||||
if (rpi.type === '5B') { return 'VideoCore VII'; }
|
||||
if (rpi.type === '5') { return 'VideoCore VII'; }
|
||||
return 'VideoCore IV';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user