summaryrefslogtreecommitdiff
path: root/common/print.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2012-10-18 01:11:06 +0900
committertmk <nobody@nowhere>2012-10-18 01:11:06 +0900
commit3c822b511e7af60332a7e5a938c08bafb2516ba3 (patch)
tree0a78cce225b04930de14935dffd36ce8f3bf2d76 /common/print.c
parent93e33fb8f694c9685accd72ed0458a2cf3d3f04a (diff)
parentfffc375b45ad795c4a8d3cde94783dac195a2613 (diff)
downloadqmk_firmware-3c822b511e7af60332a7e5a938c08bafb2516ba3.tar.gz
qmk_firmware-3c822b511e7af60332a7e5a938c08bafb2516ba3.zip
Merge branch 'layerfix'
Diffstat (limited to 'common/print.c')
-rw-r--r--common/print.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/print.c b/common/print.c
index 558181ea72..4e36d3935b 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)
{