Use _delay_ms instead of delay (fix - fast scrolling in sd card menu - temporary solution)
This commit is contained in:
commit
d2a4cb4c49
1
.gitignore
vendored
1
.gitignore
vendored
@ -49,3 +49,4 @@ Firmware/Doc
|
||||
/lang/text.sym
|
||||
/lang/textaddr.txt
|
||||
/build-env/
|
||||
/Firmware/Firmware.vcxproj
|
||||
|
@ -301,8 +301,8 @@ static void lcd_implementation_drawmenu_sdfile_selected(uint8_t row, char* longF
|
||||
j = 0;
|
||||
break;
|
||||
}else{
|
||||
if (j == 1) _delay(3); //wait around 1.2 s to start scrolling text
|
||||
_delay(1); //then scroll with redrawing every 300 ms
|
||||
if (j == 1) _delay_ms(3); //wait around 1.2 s to start scrolling text
|
||||
_delay_ms(1); //then scroll with redrawing every 300 ms
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user