浏览代码

Merge pull request #91 from FrankBoesing/patch-5

The buffer for digits after the decimal-point is on the stack, so i t…
teensy4-core
Paul Stoffregen 10 年前
父节点
当前提交
c241352f9e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      teensy3/Print.cpp

+ 1
- 1
teensy3/Print.cpp 查看文件



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


// Extract digits from the remainder one at a time // Extract digits from the remainder one at a time

正在加载...
取消
保存