diff --git a/platforms/posix/src/hci_transport_h4.c b/platforms/posix/src/hci_transport_h4.c index f1568488c..9236677eb 100644 --- a/platforms/posix/src/hci_transport_h4.c +++ b/platforms/posix/src/hci_transport_h4.c @@ -158,16 +158,7 @@ static int h4_open(void *transport_config){ // init state machine bytes_to_read = 1; h4_state = H4_W4_PACKET_TYPE; - read_pos = 0; - - // bring bluetooth module into defined state - uint8_t reset[] = { 0x01, 0x03, 0x0c, 0x00}; - write(fd, reset, sizeof(reset)); - usleep(100000); // 100 ms - write(fd, reset, sizeof(reset)); - usleep(100000); // 100 ms - tcflush(fd, TCIOFLUSH); - + read_pos = 0; return 0; }