Juraj Ďuďák 1 yıl önce
ebeveyn
işleme
8db899f571
2 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 2 2
      src/nbus_app.c
  2. 1 1
      src/nbus_master_module.c

+ 2 - 2
src/nbus_app.c

@@ -304,9 +304,9 @@ void nbus_stack(void)
             send_response();
 #endif
 #if MODULE_MASTER == 1
-            //test
+            // test
             send_response();
-            //receive_slave_response();
+            // receive_slave_response();
 #endif
         }
 

+ 1 - 1
src/nbus_master_module.c

@@ -28,7 +28,7 @@ void nbus_master_unicastToModuleGet(nBus_TypeDef *nbus)
     case CMD_ECHO: {
         for (uint8_t i = 3; i < nbus->rx_length - 1; i++)
         {
-            nbus->tx_buffer[i + 1] = nbus->rx_buffer[i]+1;
+            nbus->tx_buffer[i + 1] = nbus->rx_buffer[i] + 1;
         }
         nbus->tx_length += (nbus->rx_length - 4);
         break;