comparison Discovery/Src/tCCR.c @ 457:4bd01f48c285 minor_improvments

Eliminated some minor warnings
author ideenmodellierer
date Tue, 24 Mar 2020 22:32:48 +0100
parents 91a939915bfa
children d97f0e395058
comparison
equal deleted inserted replaced
456:5e38b09d2c45 457:4bd01f48c285
360 360
361 361
362 void tCCR_control(void) 362 void tCCR_control(void)
363 { 363 {
364 uint16_t checksum = 0; 364 uint16_t checksum = 0;
365 #ifdef ENABLE_BOTTLE_SENSOR
365 SDiveState *pLivedata = stateRealGetPointerWrite(); 366 SDiveState *pLivedata = stateRealGetPointerWrite();
366 367 #endif
367 368
368 if((UartReadyHUD == RESET) && StartListeningToUART_HUD && (time_elapsed_ms(LastReceivedTick_HUD, HAL_GetTick()) > HUD_RX_START_DELAY_MS)) 369 if((UartReadyHUD == RESET) && StartListeningToUART_HUD && (time_elapsed_ms(LastReceivedTick_HUD, HAL_GetTick()) > HUD_RX_START_DELAY_MS))
369 { 370 {
370 StartListeningToUART_HUD = 0; 371 StartListeningToUART_HUD = 0;
371 HAL_UART_Receive_IT(&UartIR_HUD_Handle, receiveHUDraw, HUD_RX_FRAME_LENGTH); 372 HAL_UART_Receive_IT(&UartIR_HUD_Handle, receiveHUDraw, HUD_RX_FRAME_LENGTH);