port/qt-h4: swap default paths for posix/windows

This commit is contained in:
Matthias Ringwald 2020-03-03 15:08:38 +01:00
parent b3f03c843f
commit 22e4935be4

View File

@ -250,10 +250,10 @@ int main(int argc, char * argv[]){
// init HCI
#ifdef Q_OS_WIN
const btstack_uart_block_t * uart_driver = btstack_uart_block_windows_instance();
config.device_name = "/dev/tty.usbserial-A900K2WS"; // DFROBOT
config.device_name = "\\\\.\\COM7";
#else
const btstack_uart_block_t * uart_driver = btstack_uart_block_posix_instance();
config.device_name = "\\\\.\\COM7";
config.device_name = "/dev/tty.usbserial-A900K2WS"; // DFROBOT
#endif
const hci_transport_t * transport = hci_transport_h4_instance(uart_driver);
hci_init(transport, (void*) &config);