summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDaniel Campora <daniel@wipy.io>2015-04-13 18:52:31 +0200
committerDaniel Campora <daniel@wipy.io>2015-04-14 01:57:29 +0200
commit4c37489f4cd8817c8def67c217cf10f4812c4ae3 (patch)
tree900e32e7bdad5fc96fecb29161e7203bbd2034ff
parentf7a26472af058795007dfe01adee84fcab160127 (diff)
downloadmicropython-4c37489f4cd8817c8def67c217cf10f4812c4ae3.tar.gz
micropython-4c37489f4cd8817c8def67c217cf10f4812c4ae3.zip
cc3200: Correct the IP address byte order in the FTP server.
-rw-r--r--cc3200/ftp/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc3200/ftp/ftp.c b/cc3200/ftp/ftp.c
index fb10fc7791..2899ca4080 100644
--- a/cc3200/ftp/ftp.c
+++ b/cc3200/ftp/ftp.c
@@ -701,7 +701,7 @@ static void ftp_process_cmd (void) {
ftp_data.dtimeout = 0;
wlan_get_ip(&ip);
snprintf((char *)ftp_data.dBuffer, FTP_BUFFER_SIZE, "(%u,%u,%u,%u,%u,%u)",
- pip[0], pip[1], pip[2], pip[3], (FTP_PASIVE_DATA_PORT >> 8), (FTP_PASIVE_DATA_PORT & 0xFF));
+ pip[3], pip[2], pip[1], pip[0], (FTP_PASIVE_DATA_PORT >> 8), (FTP_PASIVE_DATA_PORT & 0xFF));
ftp_data.substate.data = E_FTP_STE_SUB_LISTEN_FOR_DATA;
ftp_send_reply(227, (char *)ftp_data.dBuffer);
}