Skip to content

Commit

Permalink
system() Raspberry Pi 5 name fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sebhildebrandt committed Nov 11, 2023
1 parent bbc2cad commit 4cb41e7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.

| Version | Date | Comment |
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
| 5.21.17 | 2023-11-09 | `system()` Raspberry Pi 5 name fix |
| 5.21.16 | 2023-11-09 | `currentLoad()` improved parsing (linux) |
| 5.21.15 | 2023-10-27 | `wifiConnections()` improved parsing (linux) |
| 5.21.14 | 2023-10-26 | `execSync()` added explicit encoding (linux) |
Expand Down
5 changes: 5 additions & 0 deletions docs/history.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ <h3>Full version history</h3>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">5.21.17</th>
<td>2023-11-11</td>
<td><span class="code">system()</span> Raspberry Pi 5 name fix</td>
</tr>
<tr>
<th scope="row">5.21.16</th>
<td>2023-11-09</td>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
<img class="logo" src="assets/logo.png" alt="logo">
<div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span>&nbsp;</div>
<div class="version">New Version: <span id="version">5.21.16</span></div>
<div class="version">New Version: <span id="version">5.21.17</span></div>
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
</div>
<div class="down">
Expand Down
4 changes: 2 additions & 2 deletions lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ function decodePiCpuinfo(lines) {
'13': '400',
'14': 'CM4',
'15': 'CM4S',
'17': '5B',
'17': '5',
};

const revisionCode = getValue(lines, 'revision', ':', true);
Expand Down Expand Up @@ -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';
}

Expand Down

0 comments on commit 4cb41e7

Please sign in to comment.