Subversion Repositories FlightCtrl

Rev

Rev 2518 | Rev 2527 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2518 Rev 2526
Line 626... Line 626...
626
                                        DebugTextAnforderung = pRxData[0];
626
                                        DebugTextAnforderung = pRxData[0];
627
                                        if (DebugTextAnforderung > 31) DebugTextAnforderung = 31;
627
                                        if (DebugTextAnforderung > 31) DebugTextAnforderung = 31;
628
                                        PcZugriff = 255;
628
                                        PcZugriff = 255;
629
                                        break;
629
                                        break;
630
                        case 'b':
630
                        case 'b':
631
                                        if(AnzahlEmpfangsBytes < 20) // prevents that the old frame is guilty
631
                                        if(AnzahlEmpfangsBytes < 20) // prevents that the old frame is valid
632
                                         {
632
                                         {
633
                                          memcpy((unsigned char *)&ExternalControl, (unsigned char *)pRxData, sizeof(ExternalControl));
633
                                          memcpy((unsigned char *)&ExternalControl, (unsigned char *)pRxData, sizeof(ExternalControl));
634
                                          ConfirmFrame = ExternalControl.Frame;
634
                                          ConfirmFrame = ExternalControl.Frame;
635
                                          ExternalControlTimeout = 100; // 2 seconds timeout
635
                                          ExternalControlTimeout = 100; // 2 seconds timeout
636
                                         }
636
                                         }