diff --git a/src/shell.c b/src/shell.c index 1caaead..a0aba4f 100644 --- a/src/shell.c +++ b/src/shell.c @@ -412,6 +412,9 @@ signed char shellToDec(int value, char *buffer) { buffer[--i] = '-'; } + if (value == 0) { + buffer[--i] = '0'; + } return 11 - i; }