Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

Commit a330a32

Browse files
chiararuggerisergiotomasello
authored andcommitted
Enclosed Wire1 definition in #ifdef precompiling option in order to avoid this definition for Arduino Primo and get compiling errors
1 parent a6c8954 commit a330a32

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libraries/Wire/Wire.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,10 @@ void TwoWire::onService(void)
390390

391391
TwoWire Wire(PIN_WIRE_SDA, PIN_WIRE_SCL);
392392

393+
// define Wire1 for Primo Core only
394+
#ifdef ARDUINO_NRF52_PRIMO_CORE
393395
TwoWire Wire1(PIN_WIRE_SDA1, PIN_WIRE_SCL1);
396+
#endif //ARDUINO_NRF52_PRIMO_CORE
394397

395398
#ifdef __cplusplus
396399
extern "C" {

0 commit comments

Comments
 (0)