# HG changeset patch # User Ideenmodellierer # Date 1715109656 -7200 # Node ID 3e499569baf3555374e8e9a08af300c35f929183 # Parent d329017469504726fa200a6200dc4a86daaaaa5c Code cleanup diff -r d32901746950 -r 3e499569baf3 Small_CPU/Src/uartProtocol_Sentinel.c --- a/Small_CPU/Src/uartProtocol_Sentinel.c Tue May 07 21:20:33 2024 +0200 +++ b/Small_CPU/Src/uartProtocol_Sentinel.c Tue May 07 21:20:56 2024 +0200 @@ -72,8 +72,6 @@ static uint32_t dataValue[3]; static uint8_t dataValueIdx = 0; - static uint8_t lastAlive = 0; - static uint8_t curAlive = 0; static uint8_t checksum = 0; static char checksum_str[]="00"; @@ -85,7 +83,6 @@ case SENTRX_Ready: if((data >= 'a') && (data <= 'z')) { rxState = SENTRX_DetectStart; - curAlive = data; checksum = 0; } break; @@ -176,7 +173,6 @@ setExternalInterfaceChannel(1,(float)(dataValue[1] / 10.0)); setExternalInterfaceChannel(2,(float)(dataValue[2] / 10.0)); SentinelConnected = 1; - lastAlive = curAlive; localComState = UART_SENTINEL_OPERATING; } rxState = SENTRX_Ready;