141,6 → 141,7 |
u8 UART1_Request_MobileInfo = 0; |
u8 UART1_Request_MissonParameter = 0; |
u8 StopAllAbbos = 0; |
u8 FTP_Mode = 0; // PC initiates FTP-Mode |
|
u8 LastTransmittedFCStatusFlags2 = 0; |
u8 UART1_ExternalControlConfirmFrame = FALSE; |
575,6 → 576,7 |
case 'f': // ftp command |
UART1_Request_FTP = SerialMsg.pData[0]; |
//if (UART1_Request_FTP == FTP_CMD_SET_CWD || UART1_Request_FTP == FTP_CMD_GET_FILE) |
FTP_Mode = 1; |
memcpy(&FTP_data, &SerialMsg.pData[1], sizeof(FTP_data)); // copy ftp parameter |
break; |
|
1445,8 → 1447,10 |
else if(UART1_Request_FTP && (UART1_tx_buffer.Locked == FALSE)) |
{ |
u8 errorcode = FTP_ERROR_NONE; |
#ifndef DATAPLOTTER |
if(FC.StatusFlags & FC_STATUS_MOTOR_RUN) errorcode = FTP_ERROR_MOTOR_RUN; |
else if (!Partition.IsValid) errorcode = FTP_ERROR_NO_SDCARD; |
#endif |
if (!Partition.IsValid) errorcode = FTP_ERROR_NO_SDCARD; |
|
if (!errorcode) CheckFTPCommand(UART1_Request_FTP); |
else |