diff options
author | tmk <nobody@nowhere> | 2012-10-17 03:44:01 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2012-10-17 15:55:37 +0900 |
commit | 30eb3e3520e9d4d7b9a9dbac0c5c0200485103c2 (patch) | |
tree | c95f8e39411cf05e5f393948b3a3a1b85deec5b9 /common/print.c | |
parent | 8f7ed2bc1902cdeeb78c49f4833816a33cd6d3a0 (diff) | |
download | firmware-30eb3e3520e9d4d7b9a9dbac0c5c0200485103c2.tar.gz firmware-30eb3e3520e9d4d7b9a9dbac0c5c0200485103c2.tar.bz2 firmware-30eb3e3520e9d4d7b9a9dbac0c5c0200485103c2.zip |
Add command console and mouseky parameters tweak.
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) { |