Skip to content

Commit

Permalink
fixup! refactor: restructure bulk_supported to emphasize kv structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Swiftb0y committed Sep 9, 2024
1 parent 7420032 commit 564a318
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/controllers/bulk/bulksupported.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
struct bulk_device_id {
std::uint16_t vendor_id;
std::uint16_t product_id;
}
};

// A list of supported USB bulk devices

struct bulk_device_tweaks {
struct bulk_device_tweak {
std::uint8_t in_epaddr;
std::uint8_t out_epaddr;
std::uint8_t interface_number;
};

struct bulk_support_lookup {
bulk_device_id key;
bulk_device_tweaks value;
bulk_device_tweak value;
};

constexpr static bulk_support_lookup bulk_supported[] = {
Expand Down

0 comments on commit 564a318

Please sign in to comment.