Permalink
Browse files

bug fix in usbtest()

  • Loading branch information...
1 parent 096c002 commit c1cbcbd7cda5c94cb4a353296701a396ac676d35 @felis committed May 12, 2010
Showing with 5 additions and 2 deletions.
  1. +5 −2 examples/board_test.pde
View
7 examples/board_test.pde
@@ -8,6 +8,8 @@
#include "board_test.h" /* Board test messages */
+//#define MAX_SS 10
+
void setup();
void loop();
@@ -20,6 +22,7 @@ void setup()
Max.powerOn();
printProgStr( startBanner );
printProgStr( anykey_msg );
+ //Serial.print( Max.getvar(), DEC);
}
void loop()
@@ -240,10 +243,10 @@ void test_halted()
printProgStr( test_halted_msg );
printProgStr(PSTR("\r\nPress RESET to restart test"));
while( 1 ) { //System Stop. Generating pattern to keep SCLK, MISO, MOSI, SS busy
- Select_MAX3421E;
+ digitalWrite(MAX_SS,LOW);
//Max.regRd( rREVISION );
Spi.transfer( 0x55 );
- Deselect_MAX3421E;
+ digitalWrite(MAX_SS,HIGH);
}
}
/* given a PROGMEM string, use Serial.print() to send it out */

0 comments on commit c1cbcbd

Please sign in to comment.