comparison Discovery/Src/base.c @ 91:8b0fadd413c6 kittz

First stable. With minimal button sensitivity fix(for broken buttons)
author Dmitry Romanov <kitt@bk.ru>
date Mon, 26 Nov 2018 10:13:02 +0300
parents ff7775cc34c4
children 2a74647d28d1
comparison
equal deleted inserted replaced
90:83857eb3b12b 91:8b0fadd413c6
518 /// to be called 518 /// to be called
519 /// 519 ///
520 // =============================================================================== 520 // ===============================================================================
521 void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) 521 void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
522 { 522 {
523 DataEX_call(); 523 // DataEX_call();
524 #ifdef DEMOMODE 524 #ifdef DEMOMODE
525 if(htim->Instance==TIM7) 525 if(htim->Instance==TIM7)
526 { 526 {
527 HAL_GPIO_EXTI_Callback(demoGetCommand()); 527 HAL_GPIO_EXTI_Callback(demoGetCommand());
528 return; 528 return;
555 case BaseHome: 555 case BaseHome:
556 case BaseMenu: 556 case BaseMenu:
557 case BaseInfo: 557 case BaseInfo:
558 updateSetpointStateUsed(); 558 updateSetpointStateUsed();
559 DateEx_copy_to_dataOut(); 559 DateEx_copy_to_dataOut();
560 // DataEX_call(); 560 DataEX_call();
561 DataEX_copy_to_LifeData(&modeChange); 561 DataEX_copy_to_LifeData(&modeChange);
562 //foto session :-) stateRealGetPointerWrite()->lifeData.battery_charge = 99; 562 //foto session :-) stateRealGetPointerWrite()->lifeData.battery_charge = 99;
563 //foto session :-) stateSimGetPointerWrite()->lifeData.battery_charge = 99; 563 //foto session :-) stateSimGetPointerWrite()->lifeData.battery_charge = 99;
564 DataEX_copy_to_deco(); 564 DataEX_copy_to_deco();
565 if(stateUsed == stateSimGetPointer()) 565 if(stateUsed == stateSimGetPointer())
575 if(status.base == BaseHome) 575 if(status.base == BaseHome)
576 tMenuEdit_writeSettingsToFlash(); // takes 900 ms!! 576 tMenuEdit_writeSettingsToFlash(); // takes 900 ms!!
577 break; 577 break;
578 case BaseStop: 578 case BaseStop:
579 DateEx_copy_to_dataOut(); 579 DateEx_copy_to_dataOut();
580 // DataEX_call(); 580 DataEX_call();
581 DataEX_control_connection_while_asking_for_sleep(); 581 DataEX_control_connection_while_asking_for_sleep();
582 break; 582 break;
583 default: 583 default:
584 case BaseComm: 584 case BaseComm:
585 if(get_globalState() == StUART_RTECONNECT) 585 if(get_globalState() == StUART_RTECONNECT)
586 { 586 {
587 DateEx_copy_to_dataOut(); 587 DateEx_copy_to_dataOut();
588 // DataEX_call(); 588 DataEX_call();
589 DataEX_copy_to_LifeData(0); 589 DataEX_copy_to_LifeData(0);
590 } 590 }
591 break; 591 break;
592 } 592 }
593 593