grblHAL/SAM3X8E

RS485 Direction Drive Pin Issue

pldrobot opened this issue · 1 comments

I have tried to communicate VFD via RS485 with the MAX485 chip. But unfortunately, the controller failed to communicate with the controller due RS485 direction driver pin issue. After several testing, I found a fix. Please review and update the repo.

file lib/grblHAL_Due/src/serial.c

line 402 needs to change as,
return BUFCOUNT(tx2buf.head, tail, TX_BUFFER_SIZE) + !(SERIAL2_PERIPH->US_CSR & US_CSR_TXEMPTY);

Fixed recently.