add keyboard, fix display of negative numbers

This commit is contained in:
Jeff Wang
2019-04-04 02:46:10 -04:00
parent 8550049335
commit 4734fe5a0e
3 changed files with 15 additions and 2 deletions

View File

@ -76,7 +76,7 @@ static int is_valid_character(char letter){
return 1;
} else if(letter == CGRAM_EXP || letter == CGRAM_EXP_NEG){
return 1;
} else if(letter == '.' || letter == ' '){
} else if(letter == '.' || letter == ' ' || letter == '-'){
return 1;
}