diff --git a/main.c b/main.c index ac2e7ef..6a420e1 100644 --- a/main.c +++ b/main.c @@ -3048,11 +3048,11 @@ int main(int argc, char *argv[]) system("echo 113 > /sys/class/gpio/export");//pin 113 yellow system("echo out > /sys/class/gpio/gpio113/direction"); #endif - uart_open(&uartRecvData,"/dev/ttyS0");//DT + uart_open(&uartRecvData,"/dev/ttysWK0");//DT uart_init(&uartRecvData,115200,8,1,'N',0); - uart_open(&uartRecvBack,"/dev/ttyS1");//HT + uart_open(&uartRecvBack,"/dev/ttysWK1");//HT uart_init(&uartRecvBack,115200,8,1,'N',0); - uart_open(&uartSend,"/dev/ttyS5");//GT U12 ttyS0,U14 ttyS4,U21 ttysWK0 U13 ttysWK1 U15 ttysWK2 U22 ttysWK3 U20 ttyS1 + uart_open(&uartSend,"/dev/ttysWK5");//GT U12 ttyS0,U14 ttyS4,U21 ttysWK0 U13 ttysWK1 U15 ttysWK2 U22 ttysWK3 U20 ttyS1 uart_init(&uartSend,115200,8,1,'N',0); #if 0 @@ -3201,6 +3201,7 @@ int main(int argc, char *argv[]) } #endif +#if 0 ret = pthread_create(&pt_ota,NULL,thread_ota,NULL); if(ret!=0){ LOG_I("pthread_create ota fail\n"); @@ -3216,6 +3217,7 @@ int main(int argc, char *argv[]) LOG_I("pthread_create doota success\n"); pthread_detach(pt_doota); } +#endif #if 1 ret = pthread_create(&pt_readqr,NULL,thread_readqr,NULL); if(ret!=0){