diff Small_CPU/Src/uart.c @ 731:2a801cfe23ab

Improvment sensor Autodetection: The sensor type optical has been introduce to enable the OSTC to completly switch of the external interface (voltage + ADC operation) The optical interface is handled via firmware. In addition some states have been added to reset the external power supply and to provide the ADC more time to do its conversation.
author Ideenmodellierer
date Sun, 15 Jan 2023 21:43:33 +0100
parents d646a0f724a7
children e23fe82cbf8c
line wrap: on
line diff
--- a/Small_CPU/Src/uart.c	Sat Jan 14 20:49:40 2023 +0100
+++ b/Small_CPU/Src/uart.c	Sun Jan 15 21:43:33 2023 +0100
@@ -79,6 +79,7 @@
 
   MX_USART1_DMA_Init();
 
+  memset(rxBuffer,0,sizeof(rxBuffer));
   rxReadIndex = 0;
   lastCmdIndex = 0;
   rxWriteIndex = 0;