| 1282 | |
| 1283 | #if !OTA_APP |
| 1284 | void saveEditingFile() { |
| 1285 | if (!OTA_APP) { |
| 1286 | OLED().oledWord("Saving Work"); |
| 1287 | String savePath = PM_SDAUTO().getEditingFile(); |
| 1288 | if (savePath != "" && savePath != "-" && savePath != "/temp.txt" && fileLoaded) { |
| 1289 | if (!savePath.startsWith("/")) |
| 1290 | savePath = "/" + savePath; |
| 1291 | ESP_LOGE(TAG, "Saving MarkdownFile"); |
| 1292 | saveMarkdownFile(PM_SDAUTO().getEditingFile()); |
| 1293 | ESP_LOGE(TAG, "Done saving MarkdownFile"); |
| 1294 | } |
| 1295 | } |
| 1296 | } |
| 1297 | #endif |
no test coverage detected