@@ -146,19 +146,19 @@ void atc_run(void)
146
146
int8_t ret , recv_char ;
147
147
static uint8_t buflen = 0 ;
148
148
149
- if (UART_read (& recv_char , 1 ) <= 0 ) return ; // 입력 값 없는 경우 printf("RECV: 0x%x\r\n", recv_char);
149
+ if (UART_read (& recv_char , 1 ) <= 0 ) return ; // ?…ë ¥ ê°??†ëŠ” 경우 printf("RECV: 0x%x\r\n", recv_char);
150
150
151
151
if (atci .sendsock != VAL_NONE )
152
152
{
153
153
atci .sendbuf [atci .worklen ++ ] = recv_char ;
154
- if (atci .worklen >= atci .sendlen ) { // 입력이 완료되면
154
+ if (atci .worklen >= atci .sendlen ) { // ?…ë ¥???„료?˜ë©´
155
155
act_nsend (atci .sendsock , (int8_t * )atci .sendbuf , atci .worklen , atci .sendip , & atci .sendport );
156
156
atci .sendsock = VAL_NONE ;
157
157
}
158
158
return ;
159
159
}
160
160
161
- if (isgraph (recv_char ) == 0 ) // 제어 문자 처리
161
+ if (isgraph (recv_char ) == 0 && ( recv_char != 0x20 )) // ?œì–´ ë¬¸ìž ì²˜ë¦¬
162
162
{ //printf("ctrl\r\n");
163
163
switch (recv_char ) {
164
164
case 0x0d : // CR(\r)
@@ -186,7 +186,7 @@ void atc_run(void)
186
186
}
187
187
188
188
}
189
- else if (buflen < ATCMD_BUF_SIZE - 1 ) // -1 이유 : 0 이 하나 필요하므로
189
+ else if (buflen < ATCMD_BUF_SIZE - 1 ) // -1 ?´ìœ : 0 ???˜ë‚˜ ?„ìš”?˜ë?ë¡?
190
190
{
191
191
termbuf [buflen ++ ] = (uint8_t )recv_char ; //termbuf[buflen] = 0;
192
192
if (atci .echo ) UART_write (& recv_char , 1 );
@@ -237,7 +237,7 @@ static void cmd_set_prev(uint8_t buflen)
237
237
} else CRITICAL_ERR ("ring buf 2" );
238
238
}
239
239
240
- if (prevbuf [previdx ] == NULL ) CRITICAL_ERR ("malloc fail" ); // 만약 실패해도 걍 하고 싶으면 수정
240
+ if (prevbuf [previdx ] == NULL ) CRITICAL_ERR ("malloc fail" ); // 만약 ?¤íŒ¨?´ë„ ê±??˜ê³ ?¶ìœ¼ë©??˜ì •
241
241
else {
242
242
strcpy ((char * )prevbuf [previdx ], (char * )termbuf ); //printf("$$%s## was set\r\n", prevbuf[previdx]);
243
243
if (previdx == PREVBUF_LAST ) previdx = 0 ;
@@ -312,7 +312,7 @@ static int8_t cmd_divide(int8_t *buf)
312
312
CMD_CLEAR ();
313
313
goto FAIL_END ;
314
314
}
315
- DBGA ("Debug: (%s)" , tmpptr ); //최대 arg넘게 들어온 것 확인용 - Strict Param 정책
315
+ DBGA ("Debug: (%s)" , tmpptr ); //최ë? arg?˜ê²Œ ?¤ì–´??ê²??•ì¸?? - Strict Param ?•ì±…
316
316
317
317
OK_END :
318
318
ret = RET_OK ;
@@ -446,7 +446,7 @@ static void hdl_nset(void)
446
446
int8_t mode , num = -1 ;
447
447
uint8_t ip [4 ];
448
448
449
- if (atci .tcmd .sign == CMD_SIGN_NONE ) atci .tcmd .sign = CMD_SIGN_QUEST ; // x는 ?로 치환
449
+ if (atci .tcmd .sign == CMD_SIGN_NONE ) atci .tcmd .sign = CMD_SIGN_QUEST ; // x???�치환
450
450
if (atci .tcmd .sign == CMD_SIGN_QUEST )
451
451
{
452
452
if (atci .tcmd .arg1 [0 ] != 0 ) {
@@ -592,7 +592,7 @@ static void hdl_nopen(void)
592
592
CHK_ARG_LEN (atci .tcmd .arg3 , 0 , 3 );
593
593
CHK_ARG_LEN (atci .tcmd .arg4 , 0 , 4 );
594
594
}
595
- } else { // 'A' 무시정책이냐 아니면 전부 확인 정책이냐
595
+ } else { // 'A' 무시?•ì±…?´ëƒ ?„니ë©??„ë? ?•ì¸ ?•ì±…?´ëƒ
596
596
// Nothing to do for A mode
597
597
}
598
598
@@ -669,7 +669,7 @@ static void hdl_nsend(void)
669
669
ret = act_nsend_chk (num , & atci .sendlen , dip , dport );
670
670
if (ret != RET_OK ) return ;
671
671
672
- atci .sendsock = num ; // 유효성 검사가 완료되면 SEND모드로 전환
672
+ atci .sendsock = num ; // ? 효??ê²€?¬ê? ?„료?˜ë©´ SEND모드ë¡??„환
673
673
atci .worklen = 0 ;
674
674
cmd_resp (RET_ASYNC , num );
675
675
}
@@ -730,7 +730,7 @@ static void hdl_mset(void)
730
730
poll = atci .tcmd .arg2 [0 ];
731
731
CMD_CLEAR ();
732
732
act_mset_a (0 , poll , 0 );
733
- } else RESP_CDR (RET_NOT_ALLOWED , 2 ); // 국가 설정 아직 구현안함
733
+ } else RESP_CDR (RET_NOT_ALLOWED , 2 ); // êµ?? ?¤ì • ?„ì§ êµ¬í˜„?ˆí•¨
734
734
} else RESP_CDR (RET_WRONG_ARG , 1 );
735
735
}
736
736
else if (atci .tcmd .sign == CMD_SIGN_EQUAL )
@@ -744,7 +744,7 @@ static void hdl_mset(void)
744
744
num ++ ;
745
745
if (CMP_CHAR_3 (atci .tcmd .arg2 , 'F' , 'S' , 'D' )) RESP_CDR (RET_WRONG_ARG , 2 );
746
746
}
747
- // arg 3 은 일단 무시
747
+ // arg 3 ?€ ?¼ë‹¨ 무시
748
748
if (num == 0 ) RESP_CR (RET_NOT_ALLOWED );
749
749
echo = atci .tcmd .arg1 [0 ];
750
750
poll = atci .tcmd .arg2 [0 ];
@@ -837,7 +837,7 @@ static void hdl_musart(void)
837
837
else value -> serial_info [0 ].flow_control = num ;
838
838
CMD_CLEAR ();
839
839
act_uart_a (& (value -> serial_info [0 ]));
840
- } else RESP_CDR (RET_NOT_ALLOWED , 2 ); // 국가 설정 아직 구현안함
840
+ } else RESP_CDR (RET_NOT_ALLOWED , 2 ); // êµ?? ?¤ì • ?„ì§ êµ¬í˜„?ˆí•¨
841
841
} else RESP_CDR (RET_WRONG_ARG , 1 );
842
842
}
843
843
else if (atci .tcmd .sign == CMD_SIGN_EQUAL )
0 commit comments