Rev 173 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 173 | Rev 304 | ||
---|---|---|---|
Line 176... | Line 176... | ||
176 | // -------------------------------------------------------------------------- |
176 | // -------------------------------------------------------------------------- |
177 | void BearbeiteRxDaten(void) |
177 | void BearbeiteRxDaten(void) |
178 | { |
178 | { |
179 | if(!NeuerDatensatzEmpfangen) return; |
179 | if(!NeuerDatensatzEmpfangen) return; |
Line 180... | Line 180... | ||
180 | 180 | ||
181 | unsigned int tmp_int_arr1[1]; |
181 | // unsigned int tmp_int_arr1[1]; |
182 | unsigned int tmp_int_arr2[2]; |
182 | // unsigned int tmp_int_arr2[2]; |
183 | unsigned int tmp_int_arr3[3]; |
183 | // unsigned int tmp_int_arr3[3]; |
184 | unsigned char tmp_char_arr2[2]; |
184 | unsigned char tmp_char_arr2[2]; |
185 | unsigned char tmp_char_arr3[3]; |
185 | // unsigned char tmp_char_arr3[3]; |
186 | unsigned char tmp_char_arr4[4]; |
186 | // unsigned char tmp_char_arr4[4]; |
187 | //if(!MotorenEin) |
187 | //if(!MotorenEin) |
188 | PcZugriff = 255; |
188 | PcZugriff = 255; |
189 | switch(RxdBuffer[2]) |
189 | switch(RxdBuffer[2]) |
190 | { |
190 | { |
Line 315... | Line 315... | ||
315 | { |
315 | { |
316 | Menu(); |
316 | Menu(); |
317 | DebugDisplayAnforderung = 0; |
317 | DebugDisplayAnforderung = 0; |
318 | if(++dis_zeile == 4) |
318 | if(++dis_zeile == 4) |
319 | { |
319 | { |
320 | SendOutData('4',0,&PPM_in,sizeof(PPM_in)); // DisplayZeile übertragen |
320 | SendOutData('4',0,(unsigned char *)&PPM_in,sizeof(PPM_in)); // DisplayZeile übertragen |
321 | dis_zeile = -1; |
321 | dis_zeile = -1; |
322 | } |
322 | } |
323 | else SendOutData('0' + dis_zeile,0,&DisplayBuff[20 * dis_zeile],20); // DisplayZeile übertragen |
323 | else SendOutData('0' + dis_zeile,0,(unsigned char *)&DisplayBuff[20 * dis_zeile],20); // DisplayZeile übertragen |
324 | } |
324 | } |
325 | if(GetVersionAnforderung && UebertragungAbgeschlossen) |
325 | if(GetVersionAnforderung && UebertragungAbgeschlossen) |
326 | { |
326 | { |
327 | SendOutData('V',MeineSlaveAdresse,(unsigned char *) &VersionInfo,sizeof(VersionInfo)); |
327 | SendOutData('V',MeineSlaveAdresse,(unsigned char *) &VersionInfo,sizeof(VersionInfo)); |
328 | GetVersionAnforderung = 0; |
328 | GetVersionAnforderung = 0; |