diff --git a/CHANGELOG.md b/CHANGELOG.md index 12aaae7..69ba48c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page. | Version | Date | Comment | | -------------- | -------------- | -------- | +| 4.12.2 | 2019-06-24 | `system()` added Raspberry PI 4 detection | | 4.12.1 | 2019-06-24 | `networkInterface()` virtual interfaces macos, `networkInterfaceDefault()` | | 4.12.0 | 2019-06-21 | `networkInterface()` added property virtual | | 4.11.6 | 2019-06-19 | `util` bug fix | diff --git a/docs/history.html b/docs/history.html index 372a0b2..8f3744f 100644 --- a/docs/history.html +++ b/docs/history.html @@ -83,6 +83,11 @@ + + 4.12.2 + 2019-06-24 + system() added Raspberry PI 4 detection + 4.12.1 2019-06-24 diff --git a/docs/index.html b/docs/index.html index c96c8c6..a87eb8c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -168,7 +168,7 @@
systeminformation
-
Current Version: 4.12.1
+
Current Version: 4.12.2
diff --git a/lib/system.js b/lib/system.js index f8c47d1..0c7490a 100644 --- a/lib/system.js +++ b/lib/system.js @@ -96,8 +96,14 @@ function system(callback) { result.serial = util.getValue(lines, 'serial', ':', true); // reference values: https://elinux.org/RPi_HardwareHistory + https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md if (result.model === 'BCM2835' || result.model === 'BCM2708' || result.model === 'BCM2709' || result.model === 'BCM2835' || result.model === 'BCM2837') { + // Pi 4 + if (['a03111', 'b03111', 'c03111'].indexOf(result.version) >= 0) { + result.model = result.model + ' - Pi 4 Model B'; + result.version = result.version + ' - Rev. 1.1'; + } // Pi 3 if (['a02082', 'a22082', 'a32082'].indexOf(result.version) >= 0) { result.model = result.model + ' - Pi 3 Model B';