Skip to content

Commit

Permalink
in full example, do not let user set digital pins 1 and 2
Browse files Browse the repository at this point in the history
  • Loading branch information
kobi committed Dec 8, 2015
1 parent ce0b801 commit 85fe752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/full/full.ino
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ void writeMemory(uint8_t fc, uint16_t address, uint16_t length) {
/* if this register sets digital pins mode,
* set the digital pins mode.
*/
if (registerIndex < 14) {
if (registerIndex > 2 && registerIndex < 14 && registerIndex != CTRL_PIN) {
// use the register value to set pin mode.
switch (value) {
case PIN_MODE_INPUT:
Expand Down

0 comments on commit 85fe752

Please sign in to comment.