Skip to content

Commit

Permalink
fixup! refactor: remove OS-specific hidapi code
Browse files Browse the repository at this point in the history
  • Loading branch information
Swiftb0y committed Sep 18, 2024
1 parent cc182df commit 60541eb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/controllers/bulk/bulksupported.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ struct bulk_device_endpoints {
std::uint8_t in_epaddr;
std::uint8_t out_epaddr;
// we may not know the interface, in which case we should not try to claim it.
std::optional<std::uint8_t> interface_number = std::nullopt;
// these devices are likely unusable on windows without claiming the correct interface.
std::optional<std::uint8_t> interface_number;
};

struct bulk_support_lookup {
Expand All @@ -23,8 +24,8 @@ struct bulk_support_lookup {
};

constexpr static bulk_support_lookup bulk_supported[] = {
{{0x06f8, 0xb105}, {0x82, 0x03}}, // Hercules MP3e2
{{0x06f8, 0xb107}, {0x83, 0x03}}, // Hercules Mk4
{{0x06f8, 0xb100}, {0x86, 0x06}}, // Hercules Mk2
{{0x06f8, 0xb120}, {0x82, 0x03}}, // Hercules MP3 LE / Glow
{{0x06f8, 0xb105}, {0x82, 0x03, std::nullopt}}, // Hercules MP3e2
{{0x06f8, 0xb107}, {0x83, 0x03, std::nullopt}}, // Hercules Mk4
{{0x06f8, 0xb100}, {0x86, 0x06, std::nullopt}}, // Hercules Mk2
{{0x06f8, 0xb120}, {0x82, 0x03, std::nullopt}}, // Hercules MP3 LE / Glow
};

0 comments on commit 60541eb

Please sign in to comment.