Skip to content

Commit

Permalink
remotebuzzer-server: allow GPIO to be any number (#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
andi34 authored Jan 4, 2024
1 parent b3df99a commit 1baf45e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions assets/js/remotebuzzer-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,10 +505,6 @@ function gpioPuSanity(gpioconfig) {
throw new Error(gpioconfig + ' is not a valid number');
}

if (gpioconfig < 1 || gpioconfig > 27) {
throw new Error('GPIO' + gpioconfig + ' number is out of range (1-27)');
}

cmd = 'sed -n "s/^gpio=\\(.*\\)=pu/\\1/p" /boot/config.txt';
stdout = execSync(cmd).toString();

Expand All @@ -532,10 +528,6 @@ function gpioOpSanity(gpioconfig) {
throw new Error(gpioconfig + ' is not a valid number');
}

if (gpioconfig < 1 || gpioconfig > 27) {
throw new Error('GPIO' + gpioconfig + ' number is out of range (1-27)');
}

cmd = 'sed -n "s/^gpio=\\(.*\\)=op/\\1/p" /boot/config.txt';
stdout = execSync(cmd).toString();

Expand Down

0 comments on commit 1baf45e

Please sign in to comment.