Skip to content

Commit 94c949a

Browse files
update firmware to 4.3.1
- add reset reason to info screen - updated to latest arduino-pico
1 parent 599a14c commit 94c949a

File tree

6 files changed

+7
-1
lines changed

6 files changed

+7
-1
lines changed
-359 KB
Binary file not shown.

software/ogd_pico-4.3.0.uf2

-359 KB
Binary file not shown.
412 KB
Binary file not shown.

software/ogd_pico-4.3.1.uf2

411 KB
Binary file not shown.

software/ogd_pico/Helper.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
#include <Arduino.h> // Needed for Serial, String and uint data types
1414

15+
const String RESET_REASON_TEXT[8] = { "unknown", "power-on", "run pin", "software", "watchdog", "debug", "glitch", "brownout" };
16+
1517
void cleanPrintln(const String &text = String(""));
1618
void cleanPrintln(unsigned int number, int base = DEC);
1719
void cleanPrint(const String &text = String(""));

software/ogd_pico/ogd_pico.ino

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ struct Config {
8282
=================
8383
*/
8484

85-
const String FW_VERSION = "4.3.0"; // Firmware Version Code
85+
const String FW_VERSION = "4.3.1"; // Firmware Version Code
8686

8787
const uint8_t GND_PIN = A2; // GND meas pin
8888
const uint8_t VSYS_MEAS = A3; // VSYS/3
@@ -689,6 +689,10 @@ void deviceInfo([[maybe_unused]] String *args) {
689689
println("Firmware Version: " + FW_VERSION);
690690
println("=========================");
691691
println("Runtime: \t\t" + String(millis() / 1000.0) + " s");
692+
print("Last reset reason: \t");
693+
694+
cleanPrintln(RESET_REASON_TEXT[rp2040.getResetReason()]); // Get reset reason text
695+
692696
print("Average Dead Time: \t");
693697

694698
cleanPrintln((total_events == 0) ? "n/a" : String(round(avg_dt), 0) + " µs");

0 commit comments

Comments
 (0)