Skip to content

armgit / flix

Public Imported from GitHub
0

Making an ESP32-based quadcopter from scratch

Print firmware build date and time in sys command

Oleg Kalachev68271c508c67
diff --git a/flix/cli.ino b/flix/cli.ino
index de6c60c..05fe016 100644
--- a/flix/cli.ino
+++ b/flix/cli.ino
@@ -168,6 +168,7 @@ void doCommand(String str, bool echo = false) {
print("Chip: %s\n", ESP.getChipModel());
print("Temperature: %.1f °C\n", temperatureRead());
print("Free heap: %d\n", ESP.getFreeHeap());
+ print("Firmware: " __DATE__ " " __TIME__ "\n");
// Print tasks table
print("Num Task Stack Prio Core CPU%%\n");
int taskCount = uxTaskGetNumberOfTasks();