From 96853cfea1c4f426ead28e6f694591a04b905f25 Mon Sep 17 00:00:00 2001 From: pnb Date: Sat, 11 Jun 2016 12:51:56 +0200 Subject: [PATCH] commetic --- netutils/esp8266/esp8266.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/netutils/esp8266/esp8266.c b/netutils/esp8266/esp8266.c index 77fb56012..4b77deedf 100644 --- a/netutils/esp8266/esp8266.c +++ b/netutils/esp8266/esp8266.c @@ -175,29 +175,29 @@ lesp_state_t g_lesp_state = ****************************************************************************/ static int lesp_set_baudrate(int baudrate) -{ + { struct termios term; if ( ioctl(g_lesp_state.fd,TCGETS,(unsigned long)&term) < 0 ) - { + { ndbg("TCGETS failed.\n"); return -1; - } + } if ( ( cfsetispeed( &term, baudrate ) < 0 ) || ( cfsetospeed( &term, baudrate ) < 0 ) ) - { + { ndbg("Connot set baudrate %0x08X\n",baudrate); return -1; - } + } if ( ioctl(g_lesp_state.fd,TCSETS,(unsigned long)&term) < 0 ) - { + { ndbg("TCSETS failed.\n"); return -1; - } + } return 0; -} + } /**************************************************************************** * Name: get_sock