From 66007803dae38961648aaa5c3cc745213b8e9545 Mon Sep 17 00:00:00 2001 From: Daniel Plasa Date: Fri, 29 May 2020 23:13:34 +0200 Subject: use esp8266::polledTimeout::oneShotMs fot the timeout handling --- FTPCommon.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'FTPCommon.cpp') 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) -- cgit v1.2.3