Skip to content

Commit e33552d

Browse files
committed
Fix build. Always log rumble when log everything on.
1 parent ca94891 commit e33552d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Common/ControllerStates/NintendoSwitch_WirelessController_State.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const pabb_NintendoSwitch_WirelessController_State0x30 pabb_NintendoSwitch_Wirel
2424
.right_joystick = {0x00, 0x08, 0x80},
2525
.vibrator = 0x00,
2626
},
27-
.gyro = {},
2827
};
2928

3029
bool pabb_NintendoSwitch_WirelessController_State0x30_equals(

SerialPrograms/Source/Controllers/SerialPABotBase/SerialPABotBase_Routines_NS1_WirelessControllers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ void register_message_converters_NS1_WirelessControllers(){
9595
ss << "PABB_MSG_INFO_NS1_WIRELESS_CONTROLLER_RUMBLE(): ";
9696
if (body.size() != sizeof(pabb_MsgInfo_NS1_WirelessController_Rumble)){ ss << "(invalid size)" << std::endl; return ss.str(); }
9797
const auto* params = (const pabb_MsgInfo_NS1_WirelessController_Rumble*)body.c_str();
98-
if (memcmp(
98+
if (!GlobalSettings::instance().LOG_EVERYTHING && memcmp(
9999
params,
100100
&pabb_NintendoSwitch_Rumble_NEUTRAL_STATE,
101101
sizeof(pabb_NintendoSwitch_Rumble_NEUTRAL_STATE)

0 commit comments

Comments
 (0)