start_time undeclared if ENABLE_DEBUG=1

This commit is contained in:
Koen De Vleeschauwer 2021-11-21 11:48:56 +01:00 committed by UweBonnes
parent 73b4612ec7
commit d4cd81fa36
1 changed files with 1 additions and 1 deletions

View File

@ -398,7 +398,7 @@ static uint32_t cortexm_initial_halt(ADIv5_AP_t *ap)
*/
static bool cortexm_prepare(ADIv5_AP_t *ap)
{
#if PC_HOSTED == 1
#if ((PC_HOSTED == 1) || (ENABLE_DEBUG == 1))
uint32_t start_time = platform_time_ms();
#endif
uint32_t dhcsr = cortexm_initial_halt(ap);