Skip to content

Commit

Permalink
Added missing board revision
Browse files Browse the repository at this point in the history
  • Loading branch information
nebrius committed Sep 2, 2020
1 parent 79f5729 commit cd071ed
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 7.3.3 (2020-9-2)

- Added a new RPi 4 model
- Tweaked the unknown board message to be clearer

## 7.3.2 (2020-7-15)

- Added support for a handful of missing RPi models
Expand Down
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "raspi-board",
"version": "7.3.2",
"version": "7.3.3",
"description": "Pin mapping functionality for the Raspberry Pi in Node.js",
"main": "./dist/index.js",
"types": "./declarations/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ const BOARD_REVISIONS: { [ revision: string ]: string } = {
'9020e0': VERSION_3_MODEL_A_PLUS,
'a03111': VERSION_4_MODEL_B, // 1GB RAM
'b03111': VERSION_4_MODEL_B, // 2GB RAM
'b03112': VERSION_4_MODEL_B,
'c03111': VERSION_4_MODEL_B, // 4GB RAM
'c03112': VERSION_4_MODEL_B, // 4GB RAM
'd03114': VERSION_4_MODEL_B // 8GB RAM
Expand Down Expand Up @@ -856,7 +857,7 @@ switch (BOARD_REVISIONS[rev]) {
break;
default:
console.info(`Unknown board revision ${rev}, assuming Raspberry Pi Zero/2/3 pinout. ` +
`Unless you are running a compute module or very old RPi this should work fine. ` +
`Unless you are running a compute module or very old Raspberry Pi, you can safely ignore this message. ` +
`Please report this board revision in a GitHub issue at https://github.com/nebrius/raspi-board.`);
pins = BPLUS;
break;
Expand Down

0 comments on commit cd071ed

Please sign in to comment.