[apps/code] Allow any number of scripts

This commit is contained in:
Léa Saviot
2018-11-05 17:57:02 +01:00
committed by Émilie Feral
parent bdbae0777e
commit 58c022a9a9
2 changed files with 1 additions and 2 deletions

View File

@@ -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) {

View File

@@ -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);