You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 4, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+24-3
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ If you don't find anything, please [open a new issue](https://github.com/khoih-p
15
15
Please ensure to specify the following:
16
16
17
17
* Arduino IDE version (e.g. 1.8.19) or Platform.io version
18
-
*`ESP8266` or `ESP32` Core Version (e.g. ESP8266 core v3.0.2 or ESP32 v2.0.4)
18
+
*`ESP8266` or `ESP32` Core Version (e.g. ESP8266 core v3.0.2 or ESP32 v2.0.5)
19
19
* Contextual information (e.g. what you were trying to achieve)
20
20
* Simplest possible steps to reproduce
21
21
* Anything that might be relevant in your opinion, such as:
@@ -29,23 +29,44 @@ Please ensure to specify the following:
29
29
Arduino IDE version: 1.8.19
30
30
ESP8266 Core Version 3.0.2
31
31
OS: Ubuntu 20.04 LTS
32
-
Linux xy-Inspiron-3593 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
32
+
Linux xy-Inspiron-3593 5.15.0-53-generic #59~20.04.1-Ubuntu SMP Thu Oct 20 15:10:22 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
33
33
34
34
Context:
35
-
I encountered a non-response while trying to press the reset button twice.
35
+
I encountered a crash while using this library
36
36
37
37
Steps to reproduce:
38
38
1. ...
39
39
2. ...
40
40
3. ...
41
41
4. ...
42
42
```
43
+
44
+
---
45
+
43
46
### Sending Feature Requests
44
47
45
48
Feel free to post feature requests. It's helpful if you can explain exactly why the feature would be useful.
46
49
47
50
There are usually some outstanding feature requests in the [existing issues list](https://github.com/khoih-prog/ESP_MultiResetDetector/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement), feel free to add comments to them.
48
51
52
+
---
53
+
49
54
### Sending Pull Requests
50
55
51
56
Pull Requests with changes and fixes are also welcome!
57
+
58
+
Please use the `astyle` to reformat the updated library code as follows (demo for Ubuntu Linux)
59
+
60
+
1. Change directory to the library GitHub
61
+
62
+
```
63
+
xy@xy-Inspiron-3593:~$ cd Arduino/xy/ESP_MultiResetDetector_GitHub/
<ahref="https://www.buymeacoffee.com/khoihprog6"title="Donate to my libraries using BuyMeACoffee"><imgsrc="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png"alt="Donate to my libraries using BuyMeACoffee"style="height: 50px!important;width: 181px!important;" ></a>
11
11
<ahref="https://www.buymeacoffee.com/khoihprog6"title="Donate to my libraries using BuyMeACoffee"><imgsrc="https://img.shields.io/badge/buy%20me%20a%20coffee-donate-orange.svg?logo=buy-me-a-coffee&logoColor=FFDD00"style="height: 20px!important;width: 200px!important;" ></a>
@@ -124,10 +126,11 @@ This [**ESP_MultiResetDetector** library](https://github.com/khoih-prog/ESP_Mult
124
126
## Prerequisites
125
127
126
128
1.[`Arduino IDE 1.8.19+` for Arduino](https://github.com/arduino/Arduino). [](https://github.com/arduino/Arduino/releases/latest)
127
-
2.[`ESP32 Core 2.0.4+`](https://github.com/espressif/arduino-esp32) for ESP32-based boards. [](https://github.com/espressif/arduino-esp32/releases/latest/)
129
+
2.[`ESP32 Core 2.0.5+`](https://github.com/espressif/arduino-esp32) for ESP32-based boards. [](https://github.com/espressif/arduino-esp32/releases/latest/)
128
130
3.[`ESP8266 Core 3.0.2+`](https://github.com/esp8266/Arduino) for ESP8266-based boards. [](https://github.com/esp8266/Arduino/releases/latest/). SPIFFS is deprecated from ESP8266 core 2.7.1+, to use LittleFS.
129
131
4.[`LittleFS_esp32 v1.0.6+`](https://github.com/lorol/LITTLEFS) for ESP32-based boards using LittleFS with ESP32 core **v1.0.5-**. To install, check [](https://www.ardu-badge.com/LittleFS_esp32). **Notice**: This [`LittleFS_esp32 library`](https://github.com/lorol/LITTLEFS) has been integrated to Arduino [ESP32 core v1.0.6+](https://github.com/espressif/arduino-esp32/tree/master/libraries/LITTLEFS) and **you don't need to install it if using ESP32 core v1.0.6+**
130
132
133
+
---
131
134
---
132
135
133
136
## Installation
@@ -324,7 +327,7 @@ This is terminal debug output when running [ESP32_FSWebServer_DRD](https://githu
324
327
325
328
```cpp
326
329
Starting ESP32_FSWebServer_DRD with DoubleResetDetect using SPIFFS on ESP32_DEV
327
-
ESP_WiFiManager v1.11.0
330
+
ESP_WiFiManager v1.12.1
328
331
ESP_MultiResetDetector v1.3.2
329
332
FS File: /ConfigSW.json, size: 150B
330
333
FS File: /CanadaFlag_1.png, size: 40.25KB
@@ -390,7 +393,7 @@ This is terminal debug output when running [minimal](examples/minimal) on ***ESP
390
393
391
394
#### 2.1 Data Corrupted => reset to 0
392
395
393
-
```
396
+
```cpp
394
397
Starting ESP_MultiResetDetector minimal on ESP32_DEV using LittleFS
395
398
ESP_MultiResetDetector v1.3.2
396
399
/home/kh/Arduino/libraries/LITTLEFS-master/src/lfs.c:1003:error: Corrupted dir pair at {0x0, 0x1}
@@ -411,7 +414,7 @@ Saving config file OK
411
414
412
415
#### 2.2 Reset Detected => Reporting 1
413
416
414
-
```
417
+
```cpp
415
418
Starting ESP_MultiResetDetector minimal on ESP32_DEV using LittleFS
416
419
ESP_MultiResetDetector v1.3.2
417
420
LittleFS Flag read = 0xFFFE0001
@@ -426,7 +429,7 @@ No Multi Reset Detected
426
429
427
430
#### 2.3 Reset Detected => Reporting 2
428
431
429
-
```
432
+
```cpp
430
433
Starting ESP_MultiResetDetector minimal on ESP32_DEV using LittleFS
431
434
ESP_MultiResetDetector v1.3.2
432
435
LittleFS Flag read = 0xFFFD0002
@@ -441,7 +444,7 @@ No Multi Reset Detected
441
444
442
445
#### 2.4 Reset Detected => Reporting 3
443
446
444
-
```
447
+
```cpp
445
448
Starting ESP_MultiResetDetector minimal on ESP32_DEV using LittleFS
446
449
ESP_MultiResetDetector v1.3.2
447
450
LittleFS Flag read = 0xFFFC0003
@@ -456,7 +459,7 @@ No Multi Reset Detected
456
459
457
460
#### 2.5 Reset Detected => Reporting 4
458
461
459
-
```
462
+
```cpp
460
463
Starting ESP_MultiResetDetector minimal on ESP32_DEV using LittleFS
461
464
ESP_MultiResetDetector v1.3.2
462
465
LittleFS Flag read = 0xFFFB0004
@@ -471,7 +474,7 @@ No Multi Reset Detected
471
474
472
475
#### 2.6 Reset Detected => Reporting 5. Multi Reset Detected
473
476
474
-
```
477
+
```cpp
475
478
Starting ESP_MultiResetDetector minimal on ESP32_DEV using LittleFS
476
479
ESP_MultiResetDetector v1.3.2
477
480
LittleFS Flag read = 0xFFFA0005
@@ -485,7 +488,7 @@ Multi Reset Detected
485
488
486
489
#### 2.7 Timed out => reset to 1
487
490
488
-
```
491
+
```cpp
489
492
Starting ESP_MultiResetDetector minimal on ESP32_DEV using LittleFS
490
493
ESP_MultiResetDetector v1.3.2
491
494
LittleFS Flag read = 0xFFFB0004
@@ -503,7 +506,7 @@ Saving config file OK
503
506
504
507
#### 2.8 Reset Detected => Reporting 1
505
508
506
-
```
509
+
```cpp
507
510
508
511
Starting ESP_MultiResetDetector minimal on ESP32_DEV using LittleFS
509
512
ESP_MultiResetDetector v1.3.2
@@ -527,7 +530,7 @@ This is terminal debug output when running [minimal](examples/minimal) on ***ESP
527
530
528
531
#### 3.1 Data Corrupted => reset to 0
529
532
530
-
```
533
+
```cpp
531
534
Starting ESP_MultiResetDetector minimal on ESP8266_NODEMCU using LittleFS
532
535
ESP_MultiResetDetector v1.3.2
533
536
multiResetDetectorFlag = 0x00000000
@@ -542,7 +545,7 @@ No Multi Reset Detected
542
545
543
546
#### 3.2 Reset Detected => Reporting 1
544
547
545
-
```
548
+
```cpp
546
549
Starting ESP_MultiResetDetector minimal on ESP8266_NODEMCU using LittleFS
547
550
ESP_MultiResetDetector v1.3.2
548
551
LittleFS Flag read = 0xFFFE0001
@@ -557,7 +560,7 @@ No Multi Reset Detected
557
560
558
561
#### 3.3 Reset Detected => Reporting 2
559
562
560
-
```
563
+
```cpp
561
564
Starting ESP_MultiResetDetector minimal on ESP8266_NODEMCU using LittleFS
562
565
ESP_MultiResetDetector v1.3.2
563
566
LittleFS Flag read = 0xFFFD0002
@@ -572,7 +575,7 @@ No Multi Reset Detected
572
575
573
576
#### 3.4 Reset Detected => Reporting 3
574
577
575
-
```
578
+
```cpp
576
579
Starting ESP_MultiResetDetector minimal on ESP8266_NODEMCU using LittleFS
577
580
ESP_MultiResetDetector v1.3.2
578
581
LittleFS Flag read = 0xFFFC0003
@@ -587,7 +590,7 @@ No Multi Reset Detected
587
590
588
591
#### 3.5 Reset Detected => Reporting 4
589
592
590
-
```
593
+
```cpp
591
594
Starting ESP_MultiResetDetector minimal on ESP8266_NODEMCU using LittleFS
592
595
ESP_MultiResetDetector v1.3.2
593
596
LittleFS Flag read = 0xFFFB0004
@@ -601,7 +604,7 @@ Saving config file OK
601
604
602
605
#### 3.6 Reset Detected => Reporting 5. Multi Reset Detected
603
606
604
-
```
607
+
```cpp
605
608
Starting ESP_MultiResetDetector minimal on ESP8266_NODEMCU using LittleFS
606
609
ESP_MultiResetDetector v1.3.2
607
610
LittleFS Flag read = 0xFFFA0005
@@ -615,7 +618,7 @@ Multi Reset Detected
615
618
616
619
#### 3.7 Timed out => reset to 1
617
620
618
-
```
621
+
```cpp
619
622
Starting ESP_MultiResetDetector minimal on ESP8266_NODEMCU using LittleFS
620
623
ESP_MultiResetDetector v1.3.2
621
624
LittleFS Flag read = 0xFFFB0004
@@ -633,7 +636,7 @@ Saving config file OK
633
636
634
637
#### 3.8 Reset Detected => Reporting 1
635
638
636
-
```
639
+
```cpp
637
640
Starting ESP_MultiResetDetector minimal on ESP8266_NODEMCU using LittleFS
638
641
ESP_MultiResetDetector v1.3.2
639
642
LittleFS Flag read = 0xFFFE0001
@@ -653,7 +656,7 @@ No Multi Reset Detected
653
656
This is terminal debug output when running [ESPAsync_WiFi](https://github.com/khoih-prog/ESPAsync_WiFiManager_Lite/tree/main/examples/ESPAsync_WiFi) on ***ESP32 ESP32S3_DEV.***. Config Portal was requested by MRD to input and save Credentials.
654
657
655
658
656
-
```
659
+
```cpp
657
660
Starting ESPAsync_WiFi using LittleFS on ESP32S3_DEV
658
661
ESPAsync_WiFiManager_Lite v1.9.0
659
662
ESP_MultiResetDetector v1.3.2
@@ -776,6 +779,8 @@ Submit issues to: [ESP_MultiResetDetector issues](https://github.com/khoih-prog/
776
779
4. Add waitingForMRD() function to signal in MRD waiting period.
777
780
6. Fix ESP32 chipID for example`ConfigOnMultiReset`
778
781
7. Remove dependency on `LittleFS_esp32` library to prevent PIO error when using new ESP32 core v1.0.6+
782
+
8. Add astyle using `allman` style. Restyle the library
783
+
779
784
780
785
---
781
786
---
@@ -812,5 +817,5 @@ If you want to contribute to this project:
<ahref="https://www.buymeacoffee.com/khoihprog6"title="Donate to my libraries using BuyMeACoffee"><imgsrc="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png"alt="Donate to my libraries using BuyMeACoffee"style="height: 50px!important;width: 181px!important;" ></a>
11
+
<ahref="https://www.buymeacoffee.com/khoihprog6"title="Donate to my libraries using BuyMeACoffee"><imgsrc="https://img.shields.io/badge/buy%20me%20a%20coffee-donate-orange.svg?logo=buy-me-a-coffee&logoColor=FFDD00"style="height: 20px!important;width: 200px!important;" ></a>
0 commit comments