comparison Discovery/Src/data_exchange_main.c @ 99:6a2308b9a3d4 kittz

Config for debug data
author Dmitry Romanov <kitt@bk.ru>
date Mon, 26 Nov 2018 15:25:52 +0300
parents 83857eb3b12b
children 22a1094545f3
comparison
equal deleted inserted replaced
98:01169b86f9c6 99:6a2308b9a3d4
165 } 165 }
166 166
167 void DataEX_init(void) 167 void DataEX_init(void)
168 { 168 {
169 SDiveState * pStateReal = stateRealGetPointerWrite(); 169 SDiveState * pStateReal = stateRealGetPointerWrite();
170 pStateReal->data_old__lost_connection_to_slave = 1; 170 pStateReal->data_old__lost_connection_to_slave = 0; //initial value
171 data_old__lost_connection_to_slave_counter_temp = 0; 171 data_old__lost_connection_to_slave_counter_temp = 0;
172 data_old__lost_connection_to_slave_counter_total = 0; 172 data_old__lost_connection_to_slave_counter_total = 0;
173 173
174 memset((void *)&dataOut, 0, sizeof(SDataReceiveFromMaster)); 174 memset((void *)&dataOut, 0, sizeof(SDataReceiveFromMaster));
175 // old 160307: for(int i=0;i<EXCHANGE_BUFFERSIZE;i++) 175 // old 160307: for(int i=0;i<EXCHANGE_BUFFERSIZE;i++)