mirror of
https://github.com/ndeadly/MissionControl
synced 2024-11-23 12:53:17 +00:00
btdrv-mitm: make use of auto
This commit is contained in:
parent
85aed3aa4a
commit
dda42962e2
3 changed files with 4 additions and 3 deletions
|
@ -125,7 +125,7 @@ namespace ams::bluetooth::core {
|
|||
*type = g_currentEventType;
|
||||
std::memcpy(buffer, g_eventDataBuffer, size);
|
||||
|
||||
BluetoothEventData *eventData = reinterpret_cast<BluetoothEventData *>(buffer);
|
||||
auto eventData = reinterpret_cast<BluetoothEventData *>(buffer);
|
||||
|
||||
if (program_id == ncm::SystemProgramId::Btm) {
|
||||
|
||||
|
|
|
@ -106,7 +106,8 @@ namespace ams::bluetooth::hid {
|
|||
//os::TimedWaitEvent(&g_dataReadEvent, TimeSpan::FromMilliSeconds(500));
|
||||
}
|
||||
|
||||
HidEventData *eventData = reinterpret_cast<HidEventData *>(g_eventDataBuffer);
|
||||
auto eventData = reinterpret_cast<HidEventData *>(g_eventDataBuffer);
|
||||
|
||||
switch (g_currentEventType) {
|
||||
|
||||
case HidEvent_ConnectionState:
|
||||
|
|
|
@ -155,7 +155,7 @@ namespace ams::bluetooth::hid::report {
|
|||
*type = g_currentEventType;
|
||||
|
||||
if (g_currentEventType == HidEvent_GetReport) {
|
||||
HidEventData *eventData = reinterpret_cast<HidEventData *>(g_eventDataBuffer);
|
||||
auto eventData = reinterpret_cast<HidEventData *>(g_eventDataBuffer);
|
||||
|
||||
auto controller = ams::mitm::btdrv::locateController(&eventData->getReport.address);
|
||||
if (controller && !controller->isSwitchController()) {
|
||||
|
|
Loading…
Reference in a new issue