comparison Discovery/Src/tDebug.c @ 394:717f335cc5c9 ImproveBluetooth

Added start of module configuration after eache modul power on
author ideenmodellierer
date Tue, 26 Nov 2019 21:16:36 +0100
parents 5f11787b4f42
children 5b913cdaa9dc
comparison
equal deleted inserted replaced
393:879709909dd6 394:717f335cc5c9
32 #include "data_exchange_main.h" 32 #include "data_exchange_main.h"
33 #include "gfx_engine.h" 33 #include "gfx_engine.h"
34 #include "gfx_fonts.h" 34 #include "gfx_fonts.h"
35 #include "ostc.h" 35 #include "ostc.h"
36 #include "tInfo.h" 36 #include "tInfo.h"
37 #include "tComm.h"
37 38
38 #include "stm32f4xx_hal.h" 39 #include "stm32f4xx_hal.h"
39 40
40 #include <string.h> 41 #include <string.h>
41 42
76 77
77 78
78 void tDebug_start(void) 79 void tDebug_start(void)
79 { 80 {
80 MX_Bluetooth_PowerOn(); 81 MX_Bluetooth_PowerOn();
82 tComm_StartBlueModConfig();
81 83
82 tD_debugModeActive = 1; 84 tD_debugModeActive = 1;
83 tD_status = 0; 85 tD_status = 0;
84 for(int i=0;i<6;i++) 86 for(int i=0;i<6;i++)
85 tD_communication[i][0] = 0; 87 tD_communication[i][0] = 0;
100 break; 102 break;
101 case ACTION_TIMEOUT: 103 case ACTION_TIMEOUT:
102 case ACTION_MODE_CHANGE: 104 case ACTION_MODE_CHANGE:
103 case ACTION_BUTTON_BACK: 105 case ACTION_BUTTON_BACK:
104 exitInfo(); 106 exitInfo();
107 break;
105 default: 108 default:
106 break; 109 break;
107 case ACTION_IDLE_TICK: 110 case ACTION_IDLE_TICK:
108 case ACTION_IDLE_SECOND: 111 case ACTION_IDLE_SECOND:
109 break; 112 break;