Jelajahi Sumber

show please wait message on repeater boot

liamcottle 1 tahun lalu
induk
melakukan
f93a5156bb
1 mengubah file dengan 8 tambahan dan 1 penghapusan
  1. 8 1
      examples/simple_repeater/main.cpp

+ 8 - 1
examples/simple_repeater/main.cpp

@@ -616,6 +616,14 @@ void setup() {
 
   board.begin();
 
+#ifdef DISPLAY_CLASS
+  if(display.begin()){
+    display.startFrame();
+    display.print("Please wait...");
+    display.endFrame();
+  }
+#endif
+
   if (!radio_init()) { halt(); }
 
   fast_rng.begin(radio_get_rng_seed());
@@ -646,7 +654,6 @@ void setup() {
   the_mesh.begin(fs);
 
 #ifdef DISPLAY_CLASS
-  display.begin();
   ui_task.begin(the_mesh.getNodeName(), FIRMWARE_BUILD_DATE);
 #endif