From 0c368e033fe600218732ddbc5810abcfa9d5f988 Mon Sep 17 00:00:00 2001 From: giulcioffi Date: Thu, 16 Jul 2020 13:52:03 +0200 Subject: [PATCH] Remove call to listFile(filename) from deleteFile(filename) --- src/NBFileUtils.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/NBFileUtils.cpp b/src/NBFileUtils.cpp index ca2417f..16bfa17 100644 --- a/src/NBFileUtils.cpp +++ b/src/NBFileUtils.cpp @@ -297,9 +297,6 @@ bool NBFileUtils::deleteFile(const String filename) { String response; - if (listFile(filename) == 0) - return false; - MODEM.sendf("AT+UDELFILE=\"%s\"", filename.c_str()); auto status = MODEM.waitForResponse(100, &response);