We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c885028 commit 785d821Copy full SHA for 785d821
lib/ws281x-native.js
@@ -5,11 +5,10 @@ function getNativeBindings() {
5
// in the wrong environment, so we make sure that at least everything we can
6
// test for matches the raspberry-pi before loading the native-module
7
if(process.arch === 'arm' || process.platform === 'linux') {
8
- var fs = require('fs');
9
10
// will only work on the Broadcom BCM2708
11
var isBCM2708 = (function() {
12
- var cpuInfo = fs.readFileSync('/proc/cpuinfo').toString();
+ var cpuInfo = require('fs').readFileSync('/proc/cpuinfo').toString();
13
14
return /hardware\s*:\s*bcm2708/i.test(cpuInfo);
15
} ());
0 commit comments