1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-08-27 16:19:57 +02:00

Configure motors after I/O pins (#742)

So machine definitions can change the SPI pins before we talk to
any Trinamic drivers.
This commit is contained in:
Florian Ragwitz
2021-02-19 09:12:21 -08:00
committed by GitHub
parent 67f8e7aab4
commit 5bc3cf819b

View File

@@ -39,8 +39,8 @@ void grbl_init() {
#endif
settings_init(); // Load Grbl settings from non-volatile storage
stepper_init(); // Configure stepper pins and interrupt timers
init_motors();
system_ini(); // Configure pinout pins and pin-change interrupt (Renamed due to conflict with esp32 files)
init_motors();
memset(sys_position, 0, sizeof(sys_position)); // Clear machine position.
machine_init(); // weak definition in Grbl.cpp does nothing
// Initialize system state.