File tree 1 file changed +9
-13
lines changed
1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -496,24 +496,20 @@ void setPinInputOutput()
496
496
Serial.print (SPACE);
497
497
Serial.print (" Set input/output" );
498
498
Serial.print (CRLF);
499
- }
500
- #endif
501
499
502
500
#if defined(FARMDUINO_V14)
503
- void setPinInputOutput ()
504
- {
505
-
506
- reportingPeriod = 500 ;
507
501
508
- pinMode (READ_ENA_PIN, INPUT_PULLUP);
509
- pinMode (NSS_PIN, OUTPUT);
510
- digitalWrite (NSS_PIN, HIGH);
502
+ reportingPeriod = 500 ;
511
503
512
- SPI.setBitOrder (MSBFIRST);
513
- SPI.setDataMode (SPI_MODE0);
514
- SPI.setClockDivider (SPI_CLOCK_DIV4);
515
- SPI.begin ();
504
+ pinMode (READ_ENA_PIN, INPUT_PULLUP);
505
+ pinMode (NSS_PIN, OUTPUT);
506
+ digitalWrite (NSS_PIN, HIGH);
516
507
508
+ SPI.setBitOrder (MSBFIRST);
509
+ SPI.setDataMode (SPI_MODE0);
510
+ SPI.setClockDivider (SPI_CLOCK_DIV4);
511
+ SPI.begin ();
512
+ #endif
517
513
}
518
514
#endif
519
515
You can’t perform that action at this time.
0 commit comments