summaryrefslogtreecommitdiff
path: root/tmk_core/common
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core/common')
-rw-r--r--tmk_core/common/chibios/printf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tmk_core/common/chibios/printf.c b/tmk_core/common/chibios/printf.c
index 17c1e63416..a99752bb3d 100644
--- a/tmk_core/common/chibios/printf.c
+++ b/tmk_core/common/chibios/printf.c
@@ -98,8 +98,8 @@ static int a2d(char ch) {
static char a2i(char ch, const char** src, int base, int* nump) {
const char* p = *src;
- int num = 0;
- int digit;
+ int num = 0;
+ int digit;
while ((digit = a2d(ch)) >= 0) {
if (digit > base) break;
num = num * base + digit;