diff --git a/extruder/intercom.c b/extruder/intercom.c index 5258fa3..e8aaf36 100644 --- a/extruder/intercom.c +++ b/extruder/intercom.c @@ -185,6 +185,8 @@ ISR(USART_RX_vect) if (rx.packet.controller_num == THIS_CONTROLLER_NUM) { if (rxcrc != rx.packet.crc) tx.packet.err = ERROR_BAD_CRC; + // not sure why exactly this delay is needed, but wihtout it first byte never arrives. + delay_us(150); start_send(); } #endif diff --git a/intercom.c b/intercom.c index 5258fa3..e8aaf36 100644 --- a/intercom.c +++ b/intercom.c @@ -185,6 +185,8 @@ ISR(USART_RX_vect) if (rx.packet.controller_num == THIS_CONTROLLER_NUM) { if (rxcrc != rx.packet.crc) tx.packet.err = ERROR_BAD_CRC; + // not sure why exactly this delay is needed, but wihtout it first byte never arrives. + delay_us(150); start_send(); } #endif