| 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; |
no test coverage detected