Skip to content

Commit c3d290b

Browse files
committed
Fix: use #ifdef ARDUINO_GIGA only for SPI1 (as in all other examples).
1 parent f168970 commit c3d290b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Diff for: examples/iperf-client/iperf-client.ino

-8
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,6 @@ static T1SMacSettings const t1s_mac_settings{MAC_PROMISCUOUS_MODE, MAC_TX_CUT_TH
4141
* GLOBAL VARIABLES
4242
**************************************************************************************/
4343

44-
#ifdef ARDUINO_GIGA
45-
auto const tc6_io = new TC6::TC6_Io
46-
( SPI1
47-
, CS_PIN
48-
, RESET_PIN
49-
, IRQ_PIN);
50-
#else
5144
auto const tc6_io = new TC6::TC6_Io(
5245
#ifdef ARDUINO_GIGA
5346
SPI1
@@ -57,7 +50,6 @@ auto const tc6_io = new TC6::TC6_Io(
5750
, CS_PIN
5851
, RESET_PIN
5952
, IRQ_PIN);
60-
#endif
6153
auto const tc6_inst = new TC6::TC6_Arduino_10BASE_T1S(tc6_io);
6254

6355
/**************************************************************************************

0 commit comments

Comments
 (0)