TI Launchpad patch from Peter Lorenzen, edited to ease the mergequake.
[goodfet] / firmware / apps / spi / spi.c
index 1cb12e5..c880e8c 100644 (file)
@@ -377,8 +377,8 @@ void spi_handle_fn( uint8_t const app,
                SETSS;  //Raise !SS to end transaction.
 
                while(spiflash_status()&0x01)//while busy
                SETSS;  //Raise !SS to end transaction.
 
                while(spiflash_status()&0x01)//while busy
-               PLEDOUT^=PLEDPIN;
-               PLEDOUT&=~PLEDPIN;
+                       led_toggle();
+               led_off();
 
                txdata(app,verb,0);
                break;
 
                txdata(app,verb,0);
                break;