From 58c022a9a912ee1e48901ef756eeb001a2ab9ec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Mon, 5 Nov 2018 17:57:02 +0100 Subject: [PATCH] [apps/code] Allow any number of scripts --- apps/code/script_store.cpp | 2 +- apps/code/script_store.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/code/script_store.cpp b/apps/code/script_store.cpp index 420d1ad19..cc4da52cd 100644 --- a/apps/code/script_store.cpp +++ b/apps/code/script_store.cpp @@ -30,7 +30,7 @@ void ScriptStore::deleteAllScripts() { } bool ScriptStore::isFull() { - return (numberOfScripts() >= k_maxNumberOfScripts || Ion::Storage::sharedStorage()->availableSize() < k_fullFreeSpaceSizeLimit); + return Ion::Storage::sharedStorage()->availableSize() < k_fullFreeSpaceSizeLimit; } void ScriptStore::scanScriptsForFunctionsAndVariables(void * context, ScanCallback storeFunction, ScanCallback storeVariable) { diff --git a/apps/code/script_store.h b/apps/code/script_store.h index 9b0f6f0da..bf21e80e2 100644 --- a/apps/code/script_store.h +++ b/apps/code/script_store.h @@ -15,7 +15,6 @@ class ScriptStore : public MicroPython::ScriptProvider { public: static constexpr char k_scriptExtension[] = "py"; static constexpr size_t k_scriptExtensionLength = 2; - static constexpr int k_maxNumberOfScripts = 8; // Storage information static bool ScriptNameIsFree(const char * baseName);