diff options
author | tmk <nobody@nowhere> | 2012-10-17 18:11:06 +0200 |
---|---|---|
committer | tmk <nobody@nowhere> | 2012-10-17 18:11:06 +0200 |
commit | 3c822b511e7af60332a7e5a938c08bafb2516ba3 (patch) | |
tree | 0a78cce225b04930de14935dffd36ce8f3bf2d76 /common/print.c | |
parent | 93e33fb8f694c9685accd72ed0458a2cf3d3f04a (diff) | |
parent | fffc375b45ad795c4a8d3cde94783dac195a2613 (diff) | |
download | qmk_firmware-3c822b511e7af60332a7e5a938c08bafb2516ba3.tar.gz qmk_firmware-3c822b511e7af60332a7e5a938c08bafb2516ba3.tar.xz |
Merge branch 'layerfix'
Diffstat (limited to 'common/print.c')
-rw-r--r-- | common/print.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/print.c b/common/print.c index 558181ea7..4e36d3935 100644 --- a/common/print.c +++ b/common/print.c @@ -75,6 +75,14 @@ void phex16(unsigned int i) phex(i); } +void pdec(uint8_t i) +{ + if (!print_enable) return; + if (i/100) sendchar('0' + (i/100)); + if (i/100 || i%100/10) sendchar('0' + (i%100/10)); + sendchar('0' + (i%10)); +} + void pbin(unsigned char c) { |