comparison Discovery/Src/base.c @ 206:0bb6a8e7be9d ImprovmentSPI

Moved EvaluateButton into 100ms callback A result of the button evaluation within the main loop was that keys were without function in UART mode => Moved function into callback
author ideenmodellierer
date Sun, 24 Mar 2019 22:51:15 +0100
parents a16ce69f8a86
children ce05c801b002
comparison
equal deleted inserted replaced
205:88d2ce128dc4 206:0bb6a8e7be9d
493 createDiveSettings(); 493 createDiveSettings();
494 updateMenu(); 494 updateMenu();
495 ext_flash_write_settings(); 495 ext_flash_write_settings();
496 } 496 }
497 deco_loop(); 497 deco_loop();
498 EvaluateButton();
499 498
500 #ifdef DEBUG_RUNTIME 499 #ifdef DEBUG_RUNTIME
501 translateTime(stateUsed->lifeData.timeBinaryFormat, &Stime); 500 translateTime(stateUsed->lifeData.timeBinaryFormat, &Stime);
502 if(lastsecond == 0xFF) 501 if(lastsecond == 0xFF)
503 { 502 {
555 554
556 if(stateUsed->mode == MODE_DIVE) 555 if(stateUsed->mode == MODE_DIVE)
557 InDiveMode = 1; 556 InDiveMode = 1;
558 else 557 else
559 InDiveMode = 0; 558 InDiveMode = 0;
559
560 EvaluateButton();
560 561
561 if(returnFromCommCleanUpRequest) 562 if(returnFromCommCleanUpRequest)
562 { 563 {
563 tComm_exit(); 564 tComm_exit();
564 returnFromCommCleanUpRequest = 0; 565 returnFromCommCleanUpRequest = 0;