Mercurial > public > ostc4
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 164:3e3d1ebba956 | 166:255eedad4155 |
|---|---|
| 121 uint8_t receive_update_data_mainCPU_firmware(void); | 121 uint8_t receive_update_data_mainCPU_firmware(void); |
| 122 uint8_t receive_update_data_mainCPU_variable_firmware(void); | 122 uint8_t receive_update_data_mainCPU_variable_firmware(void); |
| 123 uint8_t receive_update_data_mainCPU_firmware_subrotuine(uint8_t region, uint8_t* pBuffer1, uint8_t* pBuffer2); | 123 uint8_t receive_update_data_mainCPU_firmware_subrotuine(uint8_t region, uint8_t* pBuffer1, uint8_t* pBuffer2); |
| 124 HAL_StatusTypeDef receive_uart_large_size(UART_HandleTypeDef *huart, uint8_t *pData, uint32_t Size); | 124 HAL_StatusTypeDef receive_uart_large_size(UART_HandleTypeDef *huart, uint8_t *pData, uint32_t Size); |
| 125 static uint8_t openComm(uint8_t aRxByte); | 125 static uint8_t openComm(uint8_t aRxByte); |
| 126 uint8_t tComm_Set_Bluetooth_Name_sub(uint16_t serial); | |
| 127 uint8_t HW_Set_Bluetooth_Name(uint16_t serial, uint8_t withEscapeSequence); | 126 uint8_t HW_Set_Bluetooth_Name(uint16_t serial, uint8_t withEscapeSequence); |
| 128 uint8_t prompt4D4C(uint8_t mode); | 127 uint8_t prompt4D4C(uint8_t mode); |
| 129 | 128 |
| 130 #ifdef BOOTLOADER_STANDALONE | 129 #ifdef BOOTLOADER_STANDALONE |
| 131 static uint8_t receive_update_data_cpu2(void); | 130 static uint8_t receive_update_data_cpu2(void); |
| 217 write_content_simple(&tCscreen, 0, 800, 480-24, &FontT24,"Exit",CLUT_ButtonSurfaceScreen); | 216 write_content_simple(&tCscreen, 0, 800, 480-24, &FontT24,"Exit",CLUT_ButtonSurfaceScreen); |
| 218 if(receiveStartByteUart == BYTE_SERVICE_MODE) | 217 if(receiveStartByteUart == BYTE_SERVICE_MODE) |
| 219 GFX_write_string(&FontT48, &tCwindow, "Service mode enabled",2); | 218 GFX_write_string(&FontT48, &tCwindow, "Service mode enabled",2); |
| 220 else | 219 else |
| 221 GFX_write_string(&FontT48, &tCwindow, "Download mode enabled",2); | 220 GFX_write_string(&FontT48, &tCwindow, "Download mode enabled",2); |
| 222 GFX_SetFramesTopBottom(tCscreen.FBStartAdress, NULL,480); | 221 GFX_SetFramesTopBottom(tCscreen.FBStartAdress, 0,480); |
| 223 display_text[0] = 0; | 222 display_text[0] = 0; |
| 224 display_text[255] = 0; | 223 display_text[255] = 0; |
| 225 } | 224 } |
| 226 else if(display_text[255]) | 225 else if(display_text[255]) |
| 227 { | 226 { |
