Skip to content

Commit

Permalink
Define GPIO pins properly before usage
Browse files Browse the repository at this point in the history
  • Loading branch information
fredlcore committed Jun 15, 2024
1 parent 8948812 commit 3de8246
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions BSB_LAN/BSB_LAN.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6707,12 +6707,7 @@ next_parameter:
}
p=strchr(p,'='); // search for '=' sign
if (p==NULL) { // no match -> query value
if (dir_token!=NULL) {
if (*dir_token=='I') {
pinMode(pin, INPUT);
printFmtToDebug("Pin %d set to input.\r\n", pin);
}
}
pinMode(pin, INPUT);
val=digitalRead(pin);
} else { // set value
p++;
Expand Down

0 comments on commit 3de8246

Please sign in to comment.