Mercurial > public > ostc4
comparison Discovery/Src/base.c @ 225:2bb1db22b5f5 div-fixes-3
cleanup: random set of cleanups
A random set of cleanups, as found during code reading, and looking
around fixing issues. Contains all kinds of things: typo's in comment,
typo in variable name, removal of unused code, making things static
where possible. Does not contain any functional changes.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
| author | Jan Mulder <jlmulder@xs4all.nl> |
|---|---|
| date | Mon, 01 Apr 2019 15:50:41 +0200 |
| parents | 5f535ef6a3db |
| children | 2c0b502b0a72 |
comparison
equal
deleted
inserted
replaced
| 224:ceecabfddb57 | 225:2bb1db22b5f5 |
|---|---|
| 258 /* Private variables ---------------------------------------------------------*/ | 258 /* Private variables ---------------------------------------------------------*/ |
| 259 | 259 |
| 260 RTC_HandleTypeDef RtcHandle; /* used to change time and date, no RTC is running on this MCU */ | 260 RTC_HandleTypeDef RtcHandle; /* used to change time and date, no RTC is running on this MCU */ |
| 261 TIM_HandleTypeDef TimHandle; /* used in stm32f4xx_it.c too */ | 261 TIM_HandleTypeDef TimHandle; /* used in stm32f4xx_it.c too */ |
| 262 TIM_HandleTypeDef TimBacklightHandle; /* used in stm32f4xx_it.c too */ | 262 TIM_HandleTypeDef TimBacklightHandle; /* used in stm32f4xx_it.c too */ |
| 263 #ifdef DEMOMODE | |
| 263 TIM_HandleTypeDef TimDemoHandle; /* used in stm32f4xx_it.c too */ | 264 TIM_HandleTypeDef TimDemoHandle; /* used in stm32f4xx_it.c too */ |
| 265 #endif | |
| 264 | 266 |
| 265 uint8_t LastButtonPressed; | 267 uint8_t LastButtonPressed; |
| 266 uint32_t LastButtonPressedTick; | 268 uint32_t LastButtonPressedTick; |
| 267 | 269 |
| 268 /* | 270 /* |
| 658 { | 660 { |
| 659 exitMenuEdit_to_Home(); | 661 exitMenuEdit_to_Home(); |
| 660 timeout_in_seconds = 0; | 662 timeout_in_seconds = 0; |
| 661 } | 663 } |
| 662 break; | 664 break; |
| 663 /* why was this here? 160317 hw | |
| 664 case BaseInfo: | |
| 665 if(status.page == InfoPageLogList) | |
| 666 { | |
| 667 exitLog(); | |
| 668 } | |
| 669 else | |
| 670 if(status.page == InfoPageLogShow) | |
| 671 { | |
| 672 show_logbook_exit(); | |
| 673 exitLog(); | |
| 674 } | |
| 675 else | |
| 676 if(status.page != InfoPageCompass) | |
| 677 { | |
| 678 exitInfo(); | |
| 679 } | |
| 680 timeout_in_seconds = 0; | |
| 681 break; | |
| 682 */ | |
| 683 default: | 665 default: |
| 684 break; | 666 break; |
| 685 } | 667 } |
| 686 } | 668 } |
| 687 else /* surface mode */ | 669 else /* surface mode */ |
