usbcnc / grbl

This is a port of GRBL 1.1 to STM32F103 target
https://github.com/usbcnc/grbl/wiki
Other
206 stars 73 forks source link

G-Code G4 not working correctly #38

Closed lakeroe closed 6 years ago

lakeroe commented 6 years ago

In my application the G-Code "G4 P3" did not work correctly. I think the problem is caused by the _delay_ms function in main.c. If I change line 196 from SysTick->LOAD = (u32)72000000 / 8000; // Loading time

to SysTick->LOAD = (u32)72000000 / 8000 * x; // Loading time

everything works fine.

Best regards, lakeroe

usbcnc commented 6 years ago

Thanks,