Azure IoT common library

Dependents:   STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more

Revision:
25:8507bf644fdf
Parent:
20:95abdea56064
Child:
27:8656a313842b
--- a/xlogging.c	Thu Apr 06 14:12:06 2017 -0700
+++ b/xlogging.c	Fri Apr 21 14:51:10 2017 -0700
@@ -71,7 +71,8 @@
     const unsigned char* startPos = bufAsChar;
     
     /* Print the whole buffer. */
-    for (size_t i = 0; i < size; i++)
+    size_t i = 0;
+    for (i = 0; i < size; i++)
     {
         /* Store the printable value of the char in the charBuf to print. */
         charBuf[countbuf] = PRINTABLE(*bufAsChar);