Skip to content

Commit 7a02453

Browse files
committed
Add detection of CM4 module
- Fixes #112.
1 parent 020b4e0 commit 7a02453

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

classes/local/utils.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class utils {
6464
* | A | 00-03 | PCB Revision | The PCB revision number |
6565
* | B | 04-11 | Model name | A, B, A+, B+, 2B, Alpha, CM1, unknown, 3B, Zero, |
6666
* | | | | CM3, unknown, Zero W, 3B+, 3A+, internal, CM3+, |
67-
* | | | | 4B, Zero 2 W, 400, CM4 |
67+
* | | | | 4B, Zero 2 W, 400, CM4, CM4S |
6868
* | C | 12-15 | Processor | BCM2835, BCM2836, BCM2837, BCM2711 |
6969
* | D | 16-19 | Manufacturer | Sony UK, Egoman, Embest, Sony Japan, |
7070
* | | | | Embest, Stadium |
@@ -96,7 +96,7 @@ public static function get_hardware_model() {
9696
$memorysizes = array('256MB', '512MB', '1GB', '2GB', '4GB', '8GB');
9797
$models = array('A', 'B', 'A+', 'B+', '2B', 'Alpha', 'CM1', 'Unknown',
9898
'3B', 'Zero', 'CM3', 'Unknown', 'ZeroW', '3B+', '3A+', 'Internal use',
99-
'CM3+', '4B', 'Zero2W', '400', 'CM4');
99+
'CM3+', '4B', 'Zero2W', '400', 'CM4', 'CM4S');
100100
$processors = array('BCM2835', 'BCM2836', 'BCM2837', 'BCM2711');
101101
$manufacturers = array('Sony UK', 'Egoman', 'Embest', 'Sony Japan',
102102
'Embest', 'Stadium');

0 commit comments

Comments
 (0)