Ver código fonte

Merge pull request #91 from FrankBoesing/patch-5

The buffer for digits after the decimal-point is on the stack, so i t…
main
Paul Stoffregen 9 anos atrás
pai
commit
c241352f9e
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      teensy3/Print.cpp

+ 1
- 1
teensy3/Print.cpp Ver arquivo

@@ -295,7 +295,7 @@ size_t Print::printFloat(double number, uint8_t digits)

// Print the decimal point, but only if there are digits beyond
if (digits > 0) {
uint8_t n, buf[8], count=1;
uint8_t n, buf[16], count=1;
buf[0] = '.';

// Extract digits from the remainder one at a time

Carregando…
Cancelar
Salvar