diff options
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) | |||
| 75 | phex(i); | 75 | phex(i); |
| 76 | } | 76 | } |
| 77 | 77 | ||
| 78 | void pdec(uint8_t i) | ||
| 79 | { | ||
| 80 | if (!print_enable) return; | ||
| 81 | if (i/100) sendchar('0' + (i/100)); | ||
| 82 | if (i/100 || i%100/10) sendchar('0' + (i%100/10)); | ||
| 83 | sendchar('0' + (i%10)); | ||
| 84 | } | ||
| 85 | |||
| 78 | 86 | ||
| 79 | void pbin(unsigned char c) | 87 | void pbin(unsigned char c) |
| 80 | { | 88 | { |
