diff options
author | Daniel Plasa <dplasa@gmail.com> | 2020-05-29 23:13:34 +0200 |
---|---|---|
committer | Daniel Plasa <dplasa@gmail.com> | 2020-05-29 23:13:34 +0200 |
commit | 66007803dae38961648aaa5c3cc745213b8e9545 (patch) | |
tree | 33b3721a0480bbd65e89ba9dd1e1c35668547b72 /FTPCommon.cpp | |
parent | explicit name error codes as constexpr (diff) | |
download | FTPCLientServer-66007803dae38961648aaa5c3cc745213b8e9545.tar FTPCLientServer-66007803dae38961648aaa5c3cc745213b8e9545.tar.gz FTPCLientServer-66007803dae38961648aaa5c3cc745213b8e9545.tar.bz2 FTPCLientServer-66007803dae38961648aaa5c3cc745213b8e9545.tar.lz FTPCLientServer-66007803dae38961648aaa5c3cc745213b8e9545.tar.xz FTPCLientServer-66007803dae38961648aaa5c3cc745213b8e9545.tar.zst FTPCLientServer-66007803dae38961648aaa5c3cc745213b8e9545.zip |
Diffstat (limited to 'FTPCommon.cpp')
-rw-r--r-- | FTPCommon.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/FTPCommon.cpp b/FTPCommon.cpp index 66211a8..4b8af4c 100644 --- a/FTPCommon.cpp +++ b/FTPCommon.cpp @@ -1,6 +1,7 @@ #include "FTPCommon.h" -FTPCommon::FTPCommon(FS &_FSImplementation) : THEFS(_FSImplementation) +FTPCommon::FTPCommon(FS &_FSImplementation) : + THEFS(_FSImplementation), sTimeOutMs(FTP_TIME_OUT*60*1000), aTimeout(FTP_TIME_OUT*60*1000) { } @@ -17,9 +18,9 @@ void FTPCommon::stop() freeBuffer(); } -void FTPCommon::setTimeout(uint16_t timeout) +void FTPCommon::setTimeout(uint32_t timeoutMs) { - sTimeOut = timeout; + sTimeOutMs = timeoutMs; } uint16_t FTPCommon::allocateBuffer(uint16_t desiredBytes) |