diff --git a/.gitignore b/.gitignore index e7169d58..7bae2ff6 100644 --- a/.gitignore +++ b/.gitignore @@ -49,3 +49,4 @@ Firmware/Doc /lang/text.sym /lang/textaddr.txt /build-env/ +/Firmware/Firmware.vcxproj diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index c5cb03bb..f372a50d 100644 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -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 } }