Subversion Repositories NaviCtrl

Compare Revisions

Ignore whitespace Rev 557 → Rev 558

/trunk/mkprotocol.c
60,6 → 60,7
#include "ramfunc.h"
#include "uart1.h"
#include "main.h"
#include "GPS.h"
 
/**************************************************************/
/* Create serial output frame */
209,7 → 210,7
pRxBuff->Position = 0;
pRxBuff->Locked = TRUE; // lock the rxd buffer
// if 2nd byte is an 'R' start bootloader
if(pRxBuff->pData[2] == 'R' && !(FC.StatusFlags & FC_STATUS_MOTOR_RUN)) // not if the motors are running)
if(pRxBuff->pData[2] == 'R' && !(FC.RealStatusFlags & FC_STATUS_MOTOR_RUN)) // not if the motors are running)
{
VIC_DeInit();
Execute_Bootloader(); // Reset-Commando - Bootloader starten