Mercurial > public > ostc4
changeset 229:2c0b502b0a72 div-fixes-4-1
cleanup: fix recent extra compiler warnings
This undoes 1 change from commit ff59d1d07f9c (as this non-functional change
introduced numerous warnings as the parameters of strcpy are char * and not
unsigned char *). And declare the type of a new variable.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author | Jan Mulder <jlmulder@xs4all.nl> |
---|---|
date | Tue, 02 Apr 2019 15:11:42 +0200 |
parents | f9ba924d188e |
children | 3973208c4a20 |
files | Discovery/Src/base.c Discovery/Src/tComm.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Discovery/Src/base.c Tue Apr 02 14:53:15 2019 +0200 +++ b/Discovery/Src/base.c Tue Apr 02 15:11:42 2019 +0200 @@ -294,7 +294,7 @@ uint8_t updateButtonsToDefault = 0; uint8_t wasFirmwareUpdateCheckBattery = 0; -static DoDisplayRefresh = 0; /* trigger to refresh display data */ +static uint8_t DoDisplayRefresh = 0; /* trigger to refresh display data */ /* Private function prototypes -----------------------------------------------*/ static void SystemClock_Config(void);
--- a/Discovery/Src/tComm.c Tue Apr 02 14:53:15 2019 +0200 +++ b/Discovery/Src/tComm.c Tue Apr 02 15:11:42 2019 +0200 @@ -97,7 +97,7 @@ uint8_t bluetoothActiveLastTime = 0; uint8_t StartListeningToUART = 0; -unsigned char display_text[256] = { 0 }; +char display_text[256] = { 0 }; uint8_t setForcedBluetoothName = 0;