From 86a91561bc34eb04b32630f7c589fbccd912db79 Mon Sep 17 00:00:00 2001 From: SCratORS Date: Mon, 15 Nov 2021 13:26:25 +0300 Subject: Update FTPClient.cpp --- FTPClient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FTPClient.cpp b/FTPClient.cpp index 51456f9..4ea31be 100644 --- a/FTPClient.cpp +++ b/FTPClient.cpp @@ -19,9 +19,9 @@ const FTPClient::Status &FTPClient::transfer(const String &localFileName, const _remoteFileName = remoteFileName; _direction = direction; - if (direction & FTP_GET) + if (direction & FTP_GET_NONBLOCKING) file = THEFS.open(localFileName, "w"); - else if (direction & FTP_PUT) + else if (direction & FTP_PUT_NONBLOCKING) file = THEFS.open(localFileName, "r"); if (!file) -- cgit v1.2.3