MCPcopy Create free account
hub / github.com/TailsmanDesign/PocketMage_PDA / saveEditingFile

Function saveEditingFile

Code/PocketMage_V3/src/UTILS.cpp:1284–1296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1282
1283#if !OTA_APP
1284void 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

Callers 2

checkTimeoutFunction · 0.85
updateBattStateFunction · 0.85

Calls 3

saveMarkdownFileFunction · 0.85
oledWordMethod · 0.80
getEditingFileMethod · 0.45

Tested by

no test coverage detected