system() Raspberry Pi 5 name fix

This commit is contained in:
Sebastian Hildebrandt
2023-11-11 21:45:39 +01:00
parent bbc2cad8b2
commit 4cb41e7d1e
4 changed files with 9 additions and 3 deletions
+2 -2
View File
@@ -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';
}