update package/pikaRTBooter/rt_pika.c.

This commit is contained in:
李昂 2021-12-25 03:57:39 +00:00 committed by Gitee
parent 5052453ba3
commit d25086a6e7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -54,7 +54,7 @@ static void pikascript_entry(void *parameter){
while(1){
inputChar = finsh_getchar();
rt_kprintf("%c", inputChar);
if (inputChar == '\b'){
if ((inputChar == '\b') || (inputChar == 127)) {
uint32_t size = strGetSize(rxBuff);
if(size == 0){
rt_kprintf(" ");