-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes the PCI-port bug on Raspberry Pi 4 (#113)
* Fixes the PCI-port bug on Raspberry Pi 4 The Bug is caused by the Fact that the USB controller is connected to the CPU via PCI, which was not the case on the Raspberry Pi 3. Because of this, the BUS_ID reported by libudev is PCI. However, if it is an actual USB device, there will be fields containing the neccessary information to generate a UsbPortInfo. This patch checks whether all those fields are available, if the BUS_ID is Pci, and if so uses them to populate an UsbPortInfo and return a SerialPortType::UsbPort * removes some logging code I accidentally left in there * fixes mistake in feature gated code * updates Changelog * oops
- Loading branch information
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters