Local changes and compiler warning

pull/249/head
igittigitt 8 years ago
parent 3ef8dd6820
commit 0ce029b16a
  1. 4
      serial/serbridge.c

@ -160,13 +160,13 @@ telnetUnwrap(serbridgeConnData *conn, uint8_t *inBuf, int len)
} }
if (in_mcu_flashing > 0) in_mcu_flashing--; if (in_mcu_flashing > 0) in_mcu_flashing--;
break; break;
case BRK_REQ: case BRK_REQ: {
char respBuf[7] = { IAC, SB, ComPortOpt, SetControl, tn_break, IAC, SE }; char respBuf[7] = { IAC, SB, ComPortOpt, SetControl, tn_break, IAC, SE };
espbuffsend(conn, respBuf, 7); espbuffsend(conn, respBuf, 7);
#ifdef SERBR_DBG #ifdef SERBR_DBG
os_printf("Telnet: BREAK state requested: state = %d)\n", tn_break); os_printf("Telnet: BREAK state requested: state = %d)\n", tn_break);
#endif #endif
break; break; }
case BRK_ON: case BRK_ON:
if (((READ_PERI_REG(UART_STATUS(UART0))>>UART_TXFIFO_CNT_S)&UART_TXFIFO_CNT) == 0) { // TX-FIFO of UART0 must be empty if (((READ_PERI_REG(UART_STATUS(UART0))>>UART_TXFIFO_CNT_S)&UART_TXFIFO_CNT) == 0) { // TX-FIFO of UART0 must be empty
PIN_FUNC_SELECT(PERIPHS_IO_MUX_U0TXD_U, FUNC_GPIO1); PIN_FUNC_SELECT(PERIPHS_IO_MUX_U0TXD_U, FUNC_GPIO1);

Loading…
Cancel
Save