diff --git a/package/pikaRTThread/rt_pika.c b/package/pikaRTThread/rt_pika.c index 85c78634c..0442c5711 100644 --- a/package/pikaRTThread/rt_pika.c +++ b/package/pikaRTThread/rt_pika.c @@ -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 */