MCPcopy Create free account
hub / github.com/SpacehuhnTech/WiFiDuck / stop

Function stop

esp_duck/duckscript.cpp:98–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96 }
97
98 void stop(String fileName) {
99 if (fileName.length() == 0) stopAll();
100 else {
101 if (running && f && (fileName == currentScript())) {
102 f.close();
103 running = false;
104 debugln("Stopped script");
105 }
106 }
107 }
108
109 bool isRunning() {
110 return running;

Callers 1

beginFunction · 0.70

Calls 2

currentScriptFunction · 0.85
stopAllFunction · 0.70

Tested by

no test coverage detected