Subversion Repositories NaviCtrl

Rev

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

Rev 489 Rev 558
Line 58... Line 58...
58
#include "91x_lib.h"
58
#include "91x_lib.h"
59
#include "mkprotocol.h" 
59
#include "mkprotocol.h" 
60
#include "ramfunc.h"
60
#include "ramfunc.h"
61
#include "uart1.h"
61
#include "uart1.h"
62
#include "main.h"
62
#include "main.h"
-
 
63
#include "GPS.h"
Line 63... Line 64...
63
 
64
 
64
/**************************************************************/
65
/**************************************************************/
65
/* Create serial output frame                                 */
66
/* Create serial output frame                                 */
66
/**************************************************************/
67
/**************************************************************/
Line 207... Line 208...
207
                                {
208
                                {
208
                                    // checksum is valid
209
                                    // checksum is valid
209
                                        pRxBuff->Position = 0;                                 
210
                                        pRxBuff->Position = 0;                                 
210
                                        pRxBuff->Locked = TRUE;                                     // lock the rxd buffer 
211
                                        pRxBuff->Locked = TRUE;                                     // lock the rxd buffer 
211
                                        // if 2nd byte is an 'R' start bootloader
212
                                        // if 2nd byte is an 'R' start bootloader
212
                                        if(pRxBuff->pData[2] == 'R' && !(FC.StatusFlags & FC_STATUS_MOTOR_RUN)) // not if the motors are running)
213
                                        if(pRxBuff->pData[2] == 'R' && !(FC.RealStatusFlags & FC_STATUS_MOTOR_RUN)) // not if the motors are running)
213
                                        {
214
                                        {
214
                                                VIC_DeInit();
215
                                                VIC_DeInit();
215
                                                Execute_Bootloader(); // Reset-Commando - Bootloader starten
216
                                                Execute_Bootloader(); // Reset-Commando - Bootloader starten
216
                                        }
217
                                        }
217
                                } // eof checksum valid
218
                                } // eof checksum valid