diff --git a/.travis.yml b/.travis.yml index 8f4b14e..6cbc813 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,7 @@ go: - 1.8.x - 1.9.x - 1.10.x + - 1.11.x go_import_path: go.bug.st/serial.v1 diff --git a/enumerator/usb_darwin.go b/enumerator/usb_darwin.go index c72a19a..4fcd4dc 100644 --- a/enumerator/usb_darwin.go +++ b/enumerator/usb_darwin.go @@ -112,7 +112,7 @@ func serviceMatching(serviceType string) C.CFMutableDictionaryRef { // getMatchingServices look up registered IOService objects that match a matching dictionary. func getMatchingServices(matcher C.CFMutableDictionaryRef) (C.io_iterator_t, error) { var i C.io_iterator_t - err := C.IOServiceGetMatchingServices(C.kIOMasterPortDefault, matcher, &i) + err := C.IOServiceGetMatchingServices(C.kIOMasterPortDefault, C.CFDictionaryRef(matcher), &i) if err != C.KERN_SUCCESS { return 0, fmt.Errorf("IOServiceGetMatchingServices failed (code %d)", err) }