Explorar el Código

Fix dirty string buffer.

Vladimir N. Shilov hace 2 años
padre
commit
413699dfb9
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/display.c

+ 3 - 0
src/display.c

@@ -98,6 +98,9 @@ void display_String(const char * string, uint8_t repeat) {
     }
     i ++;
   }
+  for (i=0; i<DISPLAY_COLUMNS; i++) {
+    String.Buf[String.j + i] = 0x0;
+  }
 
   String.k = 0;
   String.j ++;