Browse Source

Fix errors in examples

Changed %d to %lu in printf()
Jon Semple 2 years ago
parent
commit
f611641dd1
2 changed files with 4 additions and 4 deletions
  1. 2 2
      examples/Demo/Demo.ino
  2. 2 2
      examples/Demo_AP/Demo_AP.ino

+ 2 - 2
examples/Demo/Demo.ino

@@ -56,6 +56,6 @@ void loop() {
     
     WebSerial.print(F("IP address: "));
     WebSerial.println(WiFi.localIP());
-    WebSerial.printf("Millis=%d\n", millis());
-    WebSerial.printf("Free heap=[%d]\n", ESP.getFreeHeap());
+    WebSerial.printf("Millis=%lu\n", millis());
+    WebSerial.printf("Free heap=[%lu]\n", ESP.getFreeHeap());
 }

+ 2 - 2
examples/Demo_AP/Demo_AP.ino

@@ -53,7 +53,7 @@ void loop() {
     
     WebSerial.print(F("IP address: "));
     WebSerial.println(WiFi.localIP());
-    WebSerial.printf("Millis=%d\n", millis());
-    WebSerial.printf("Free heap=[%d]\n", ESP.getFreeHeap());
+    WebSerial.printf("Millis=%lu\n", millis());
+    WebSerial.printf("Free heap=[%lu]\n", ESP.getFreeHeap());
 
 }