diff options
Diffstat (limited to 'nuttx/configs/teensy/src/up_spi.c')
-rwxr-xr-x | nuttx/configs/teensy/src/up_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/configs/teensy/src/up_spi.c b/nuttx/configs/teensy/src/up_spi.c index 8baacc05fc..2ef0908f2a 100755 --- a/nuttx/configs/teensy/src/up_spi.c +++ b/nuttx/configs/teensy/src/up_spi.c @@ -179,7 +179,7 @@ void avr_spiselect(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool select uint8_t avr_spistatus(FAR struct spi_dev_s *dev, enum spi_dev_e devid)
{
uint8_t ret = 0;
- uint8_t regval = PORTB;
+ uint8_t regval = PINB;
/* Both the CD and WP pins are pull high by the AT90USB and will be
* grounded it a card is inserted or write protected.
|