diff options
author | Christian Cunningham <cc@localhost> | 2021-12-30 16:11:03 -0800 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2021-12-30 16:11:03 -0800 |
commit | 104c6fdd6b217b06183df7007882afa9183688bb (patch) | |
tree | 20f457fdae65c183f8b7caaa07c59a133c47d794 /src/drivers | |
parent | c2ce4f14384a38e02848f5b32fd7774128ce54dd (diff) |
Standardized todec algo
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/uart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/uart.c b/src/drivers/uart.c index a45f86d..cc1933e 100644 --- a/src/drivers/uart.c +++ b/src/drivers/uart.c @@ -10,7 +10,7 @@ void uart_10(unsigned long val) { unsigned long t = val; unsigned long c; - char buffer[11] = "0000000000\0"; + static char buffer[11] = "0000000000\0"; char* dptr = buffer + 9; for(int i = 0; i <= 10; i++) { c = t%10; |