Feed hold bugfix

pull/25/head
Patrick Felixberger 2019-08-01 22:00:41 +02:00
rodzic adadce2a74
commit 5ba83d45de
1 zmienionych plików z 15 dodań i 1 usunięć

Wyświetl plik

@ -672,8 +672,8 @@ static void Protocol_ExecRtSuspend(void)
#endif
Planner_Block_t *block = Planner_GetCurrentBlock();
uint8_t restore_condition;
RX_Packet_t packet;
float restore_spindle_speed;
if(block == 0) {
@ -695,6 +695,20 @@ static void Protocol_ExecRtSuspend(void)
return;
}
#ifdef ETH_IF
GrIP_Update();
if(GrIP_Receive(&packet))
{
for(int i = 0; i < packet.RX_Header.Length; i++)
{
ProcessReceive(packet.Data[i]);
}
}
ServerTCP_Update();
#else
(void)packet;
#endif
// Block until initial hold is complete and the machine has stopped motion.
if(sys.suspend & SUSPEND_HOLD_COMPLETE) {
// Parking manager. Handles de/re-energizing, switch state checks, and parking motions for