update package/pikaRTThread/rt_pika.c.

This commit is contained in:
李昂 2021-12-10 09:14:10 +00:00 committed by Gitee
parent a5291aaa52
commit 4a45750a5e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -60,7 +60,7 @@ static void pikascript_entry(void *parameter)
strAppendWithSize(rxBuff, &inputChar, 1);
continue;
}
if (inputChar == '\r') {
if ( (inputChar == '\r') || (inputChar == '\n') ) {
rt_kprintf("\r\n");
if(strEqu("exit()", rxBuff)){
/* exit pika shell */