mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-11 00:40:00 +00:00
port/qt-h4: swap default paths for posix/windows
This commit is contained in:
parent
b3f03c843f
commit
22e4935be4
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user