Mercurial > public > ostc4
changeset 860:3e499569baf3 Evo_2_23
Code cleanup
author | Ideenmodellierer |
---|---|
date | Tue, 07 May 2024 21:20:56 +0200 |
parents | d32901746950 |
children | ad96f99ebc78 |
files | Small_CPU/Src/uartProtocol_Sentinel.c |
diffstat | 1 files changed, 0 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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;