Skip to content

Commit 4c37489

Browse files
author
Daniel Campora
committed
cc3200: Correct the IP address byte order in the FTP server.
1 parent f7a2647 commit 4c37489

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cc3200/ftp/ftp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ static void ftp_process_cmd (void) {
701701
ftp_data.dtimeout = 0;
702702
wlan_get_ip(&ip);
703703
snprintf((char *)ftp_data.dBuffer, FTP_BUFFER_SIZE, "(%u,%u,%u,%u,%u,%u)",
704-
pip[0], pip[1], pip[2], pip[3], (FTP_PASIVE_DATA_PORT >> 8), (FTP_PASIVE_DATA_PORT & 0xFF));
704+
pip[3], pip[2], pip[1], pip[0], (FTP_PASIVE_DATA_PORT >> 8), (FTP_PASIVE_DATA_PORT & 0xFF));
705705
ftp_data.substate.data = E_FTP_STE_SUB_LISTEN_FOR_DATA;
706706
ftp_send_reply(227, (char *)ftp_data.dBuffer);
707707
}

0 commit comments

Comments
 (0)