btdrv-mitm: fix hos version check for hid report data format

This commit is contained in:
ndeadly 2020-06-15 01:52:31 +02:00
parent 48376acd37
commit 2357ae4a9c

View file

@ -193,7 +193,7 @@ namespace ams::bluetooth::hid::report {
const HidReport *inReport;
HidReport *outReport;
// copy address and stuff over
if (hos::GetVersion() < hos::Version_10_0_0) {
if (hos::GetVersion() < hos::Version_9_0_0) {
g_fakeReportData->size = 0; // Todo: calculate size of report data
std::memcpy(&g_fakeReportData->address, &realPacket->data.address, sizeof(BluetoothAddress));
inReport = &realPacket->data.report;