Use _delay_ms instead of delay (fix - fast scrolling in sd card menu - temporary solution)

This commit is contained in:
Robert Pelnar 2019-02-04 12:20:07 +01:00
commit d2a4cb4c49
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -49,3 +49,4 @@ Firmware/Doc
/lang/text.sym
/lang/textaddr.txt
/build-env/
/Firmware/Firmware.vcxproj

View File

@ -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
}
}