For some reason, device detection wasn't working, the constants for the PID and VID of the minimaid were shorts, which caused the 0xbeef to do sign expansion to 0xffffbeef when comparing it to an int (32), changed the shorts to a uint16_t