Mercurial > public > ostc4
comparison Small_CPU/Src/baseCPU2.c @ 943:e7f87ade3037 Evo_2_23
Added missing compile switches
author | Ideenmodellierer |
---|---|
date | Mon, 16 Dec 2024 19:33:20 +0100 |
parents | 06aaccaf2e02 |
children |
comparison
equal
deleted
inserted
replaced
942:06aaccaf2e02 | 943:e7f87ade3037 |
---|---|
458 vpm_init( &global.vpm, global.conservatism, global.repetitive_dive, | 458 vpm_init( &global.vpm, global.conservatism, global.repetitive_dive, |
459 global.seconds_since_last_dive ); | 459 global.seconds_since_last_dive ); |
460 global.no_fly_time_minutes = 0; | 460 global.no_fly_time_minutes = 0; |
461 global.lifeData.dive_time_seconds = 0; | 461 global.lifeData.dive_time_seconds = 0; |
462 global.lifeData.dive_time_seconds_without_surface_time = 0; | 462 global.lifeData.dive_time_seconds_without_surface_time = 0; |
463 | 463 #if defined ENABLE_GNSS_SUPPORT || defined ENABLE_GPIO_V2 |
464 uartGnss_ReqPowerDown(1); | 464 uartGnss_ReqPowerDown(1); |
465 | 465 #endif |
466 scheduleDiveMode(); | 466 scheduleDiveMode(); |
467 // done now in scheduler prior to change mode: global.seconds_since_last_dive = 1; | 467 // done now in scheduler prior to change mode: global.seconds_since_last_dive = 1; |
468 | 468 |
469 if( global.lifeData.dive_time_seconds > 60 ) | 469 if( global.lifeData.dive_time_seconds > 60 ) |
470 { | 470 { |
486 global.lifeData.dive_time_seconds_without_surface_time = 0; | 486 global.lifeData.dive_time_seconds_without_surface_time = 0; |
487 global.lifeData.counterSecondsShallowDepth = 0; | 487 global.lifeData.counterSecondsShallowDepth = 0; |
488 | 488 |
489 backup.no_fly_time_minutes = 0; | 489 backup.no_fly_time_minutes = 0; |
490 backup.seconds_since_last_dive = 0; | 490 backup.seconds_since_last_dive = 0; |
491 | 491 #if defined ENABLE_GNSS_SUPPORT || defined ENABLE_GPIO_V2 |
492 uartGnss_ReqPowerDown(0); | 492 uartGnss_ReqPowerDown(0); |
493 #endif | |
493 break; | 494 break; |
494 | 495 |
495 case MODE_SHUTDOWN: | 496 case MODE_SHUTDOWN: |
496 HAL_Delay(200); | 497 HAL_Delay(200); |
497 | 498 |