diff Discovery/Src/tComm.c @ 166:255eedad4155 cleanup-1

cleanup: get rid of some compile warnings Compiling with -Wall and not taking action on produced warnings is pretty useless. This fixes chars used as array indexes, and using the NULL pointer as a 0 constant. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author Jan Mulder <jlmulder@xs4all.nl>
date Thu, 07 Mar 2019 21:52:23 +0100
parents cc9c18075e00
children ff59d1d07f9c
line wrap: on
line diff
--- a/Discovery/Src/tComm.c	Thu Mar 07 14:15:33 2019 +0000
+++ b/Discovery/Src/tComm.c	Thu Mar 07 21:52:23 2019 +0100
@@ -123,7 +123,6 @@
 uint8_t receive_update_data_mainCPU_firmware_subrotuine(uint8_t region, uint8_t* pBuffer1, uint8_t* pBuffer2);
 HAL_StatusTypeDef receive_uart_large_size(UART_HandleTypeDef *huart, uint8_t *pData, uint32_t Size);
 static uint8_t openComm(uint8_t aRxByte);
-uint8_t tComm_Set_Bluetooth_Name_sub(uint16_t serial);
 uint8_t HW_Set_Bluetooth_Name(uint16_t serial, uint8_t withEscapeSequence);
 uint8_t prompt4D4C(uint8_t mode);
 
@@ -219,7 +218,7 @@
             GFX_write_string(&FontT48, &tCwindow, "Service mode enabled",2);
         else
             GFX_write_string(&FontT48, &tCwindow, "Download mode enabled",2);
-        GFX_SetFramesTopBottom(tCscreen.FBStartAdress, NULL,480);
+        GFX_SetFramesTopBottom(tCscreen.FBStartAdress, 0,480);
         display_text[0] = 0;
         display_text[255] = 0;
     }