grbl/grbl — Issue #62: DDR not set on spindle_init()
Author: simen
Created: 2012-02-09 21:26:44+00:00
State: open
Labels: todo

I got this in the mail:

> It seems that in spindle_control.c, the state of the i/o port register used for spindle control is not set, i.e. the DDR register is not updated in spindle_init() as it should be, to set the port pins up as outputs. This has the side effect of causing the outputs to appear 'broken', and unable to drive any load! At first I thought it was a hardware problem, i.e. a short, burned out output pin, or something similar, and exhausted all avenues leading to that conclusion before I thought to double check the software, and viola! There it was, a simple, missing, one liner! Hope this helps! This was found in release 24f1e0231, and it appears that this is still the case after viewing the code just now on GIT.