Defragster hace 9 años
padre
commit
9d0e0143bd
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  1. +9
    -0
      teensy3/nonstd.c

+ 9
- 0
teensy3/nonstd.c Ver fichero

@@ -94,6 +94,15 @@ char * dtostrf(float val, int width, unsigned int precision, char *buf)
*p++ = '0';
*p++ = '.';
}
else if (decpt < 0 && precision > 0) {
*p++ = '0';
*p++ = '.';
e++;
while ( decpt < 0 ) {
decpt++;
*p++ = '0';
}
}
while (p < e) {
*p++ = *s++;
if (p == e) break;

Cargando…
Cancelar
Guardar