|
@@ -54,7 +54,7 @@ inline static void receiveNBytes(uint8_t n){
|
|
|
|
|
|
|
|
inline static void send_response(){
|
|
inline static void send_response(){
|
|
|
if(nBus.send_response == SEND_RESPONSE) {
|
|
if(nBus.send_response == SEND_RESPONSE) {
|
|
|
- nBus.tx_buffer[0] -= 1;
|
|
|
|
|
|
|
+ nBus.tx_buffer[0] -= 1; // prvý bajt sa nepočíta
|
|
|
#if USE_USART_DMA_TX == 1
|
|
#if USE_USART_DMA_TX == 1
|
|
|
HAL_UART_Transmit_DMA(nBus.periph->huart, nBus.tx_buffer, nBus.tx_length);
|
|
HAL_UART_Transmit_DMA(nBus.periph->huart, nBus.tx_buffer, nBus.tx_length);
|
|
|
#else
|
|
#else
|