Skip to content

Commit

Permalink
Don't check hispeed flag unless we're on Nordic
Browse files Browse the repository at this point in the history
  • Loading branch information
gfwilliams committed Oct 4, 2024
1 parent 980f5f0 commit c163e85
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/jswrap_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,9 @@ JsVar *jswrap_interface_setWatch(
return 0;
}
isIRQ = jsvObjectGetBoolChild(repeatOrObject, "irq");
#ifdef NRF5X
isHighSpeed = jsvObjectGetBoolChild(repeatOrObject, "hispeed");
#endif
dataPin = jshGetPinFromVarAndUnLock(jsvObjectGetChildIfExists(repeatOrObject, "data"));
} else
repeat = jsvGetBool(repeatOrObject);
Expand Down

0 comments on commit c163e85

Please sign in to comment.