From 0dff4538f3c18b4aa792183864a63e6b2ebcea59 Mon Sep 17 00:00:00 2001 From: lewis Date: Sat, 26 Nov 2022 00:17:54 +0800 Subject: [PATCH 1/3] Add t-echo to the operation after the flash operation fails --- src/mesh/NodeDB.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/mesh/NodeDB.cpp b/src/mesh/NodeDB.cpp index c548b0acc..5009a2697 100644 --- a/src/mesh/NodeDB.cpp +++ b/src/mesh/NodeDB.cpp @@ -475,6 +475,15 @@ bool saveProto(const char *filename, size_t protoSize, size_t objSize, const pb_ DEBUG_MSG("Error: can't rename new pref file\n"); } else { DEBUG_MSG("Can't write prefs\n"); +#ifdef ARCH_NRF52 + static uint8_t failedCounter = 0; + failedCounter++; + if(failedCounter >= 2){ + FSCom.format(); + //After formatting, the device needs to be restarted + nodeDB.resetRadioConfig(); + } +#endif } #else DEBUG_MSG("ERROR: Filesystem not implemented\n"); From 32a1e8ef0dfc099a92283d87ae193ca42046a930 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Fri, 25 Nov 2022 09:44:26 -0800 Subject: [PATCH 2/3] Create feature.yml --- .github/ISSUE_TEMPLATE/feature.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/feature.yml diff --git a/.github/ISSUE_TEMPLATE/feature.yml b/.github/ISSUE_TEMPLATE/feature.yml new file mode 100644 index 000000000..2b6ffce0a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature.yml @@ -0,0 +1,27 @@ +name: Feature Request +description: Request a new feature +title: "[Feature Request]: " +labels: ["enhancement"] +body: + - type: markdown + attributes: + value: | + Thanks for your request this will not gurantee that we will implement it, but it will be reviewed. + - type: dropdown + id: soc + attributes: + label: Platform + description: What device platform will support your feature? + multiple: true + options: + - NRF52 + - ESP32 + validations: + required: true + - type: textarea + id: body + attributes: + label: Description + description: Please provide details about your enhancement. + validations: + required: true From cdd499f1472d5bef2d301917ad5246d72cea817f Mon Sep 17 00:00:00 2001 From: lewis Date: Sat, 26 Nov 2022 12:10:10 +0800 Subject: [PATCH 3/3] Add missing restart parameters --- src/mesh/NodeDB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh/NodeDB.cpp b/src/mesh/NodeDB.cpp index 5009a2697..6b2d5bfb3 100644 --- a/src/mesh/NodeDB.cpp +++ b/src/mesh/NodeDB.cpp @@ -481,7 +481,7 @@ bool saveProto(const char *filename, size_t protoSize, size_t objSize, const pb_ if(failedCounter >= 2){ FSCom.format(); //After formatting, the device needs to be restarted - nodeDB.resetRadioConfig(); + nodeDB.resetRadioConfig(true); } #endif }