Skip to content

Commit 85fe752

Browse files
author
kobi
committed
in full example, do not let user set digital pins 1 and 2
1 parent ce0b801 commit 85fe752

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/full/full.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ void writeMemory(uint8_t fc, uint16_t address, uint16_t length) {
189189
/* if this register sets digital pins mode,
190190
* set the digital pins mode.
191191
*/
192-
if (registerIndex < 14) {
192+
if (registerIndex > 2 && registerIndex < 14 && registerIndex != CTRL_PIN) {
193193
// use the register value to set pin mode.
194194
switch (value) {
195195
case PIN_MODE_INPUT:

0 commit comments

Comments
 (0)