sync with hidapi master