mirror of
https://github.com/mist-devel/mist-board.git
synced 2026-04-25 20:11:40 +00:00
[TUTORIAL] Increased SD card timeout a little bit
This commit is contained in:
@@ -26,7 +26,7 @@ __sfr __at 0x00 DataPort;
|
||||
// SPI control port is a single write only port bit used for spi select (ss)
|
||||
__sfr __at 0x01 ControlPort;
|
||||
|
||||
void dly_us(unsigned char n) {
|
||||
void dly_us(unsigned int n) {
|
||||
while(n--) { }
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
@@ -26,8 +26,8 @@ __sfr __at 0x00 DataPort;
|
||||
// SPI control port is a single write only port bit used for spi select (ss)
|
||||
__sfr __at 0x01 ControlPort;
|
||||
|
||||
void dly_us(unsigned char n) {
|
||||
while(n--);
|
||||
void dly_us(unsigned int n) {
|
||||
while(n--) {};
|
||||
}
|
||||
|
||||
void forward(BYTE n) {
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user