comparison Small_CPU/Src/uartProtocol_O2.c @ 800:f8a112c5e71d

Cleanup warnings
author Ideenmodellierer
date Tue, 08 Aug 2023 17:29:03 +0200
parents e9eba334b942
children 4832981f9af8
comparison
equal deleted inserted replaced
799:1e3c12d772eb 800:f8a112c5e71d
47 break; 47 break;
48 case UART_O2_REQ_INFO: *cmdLength = snprintf((char*)cmdString, 10, "#VERS"); 48 case UART_O2_REQ_INFO: *cmdLength = snprintf((char*)cmdString, 10, "#VERS");
49 break; 49 break;
50 case UART_O2_REQ_ID: *cmdLength = snprintf((char*)cmdString, 10, "#IDNR"); 50 case UART_O2_REQ_ID: *cmdLength = snprintf((char*)cmdString, 10, "#IDNR");
51 break; 51 break;
52 case UART_O2_REQ_O2: *cmdLength = snprintf((char*)cmdString, 10, "#MOXY"); 52 case UART_O2_REQ_O2: *cmdLength = snprintf((char*)cmdString, 10, "#DOXY");
53 break; 53 break;
54 case UART_O2_REQ_RAW: *cmdLength = snprintf((char*)cmdString, 10, "#MRAW"); 54 case UART_O2_REQ_RAW: *cmdLength = snprintf((char*)cmdString, 10, "#DRAW");
55 break; 55 break;
56 default: *cmdLength = 0; 56 default: *cmdLength = 0;
57 break; 57 break;
58 } 58 }
59 if(*cmdLength != 0) 59 if(*cmdLength != 0)
97 localComState = UART_O2_IDLE; 97 localComState = UART_O2_IDLE;
98 } 98 }
99 UART_FlushRxBuffer(); 99 UART_FlushRxBuffer();
100 } 100 }
101 101
102 if(localComState == UART_COMMON_INIT) 102 if(localComState == UART_O2_INIT)
103 { 103 {
104 memset((char*) &tmpSensorDataDiveO2, 0, sizeof(tmpSensorDataDiveO2)); 104 memset((char*) &tmpSensorDataDiveO2, 0, sizeof(tmpSensorDataDiveO2));
105 externalInterface_SetSensorData(0xFF,(uint8_t*)&tmpSensorDataDiveO2); 105 externalInterface_SetSensorData(0xFF,(uint8_t*)&tmpSensorDataDiveO2);
106 106
107 localComState = UART_O2_CHECK; 107 localComState = UART_O2_CHECK;