From dffa2542c98f7c46d288d3b4d18b7c1b253c3be3 Mon Sep 17 00:00:00 2001 From: Austin Schuh Date: Sun, 3 Aug 2025 20:36:05 -0700 Subject: [PATCH] [build] Fix wpiformat errors in 2027 (#8156) Must have gotten introduced in a merge, let's fix them. --- .../src/test/native/cpp/DSCommPacketTest.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/simulation/halsim_ds_socket/src/test/native/cpp/DSCommPacketTest.cpp b/simulation/halsim_ds_socket/src/test/native/cpp/DSCommPacketTest.cpp index 766b8118ac..daddff48ab 100644 --- a/simulation/halsim_ds_socket/src/test/native/cpp/DSCommPacketTest.cpp +++ b/simulation/halsim_ds_socket/src/test/native/cpp/DSCommPacketTest.cpp @@ -69,10 +69,12 @@ TEST_F(DSCommPacketTest, MainJoystickTag) { std::array _buttons{{0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 1}}; std::array _button_bytes{{0, 0}}; - for (int btn = 0; btn < 8; btn++) + for (int btn = 0; btn < 8; btn++) { _button_bytes[1] |= _buttons[btn] << btn; - for (int btn = 8; btn < 12; btn++) + } + for (int btn = 8; btn < 12; btn++) { _button_bytes[0] |= _buttons[btn] << (btn - 8); + } // 5 for base, 4 joystick, 12 buttons (2 bytes) 3 povs uint8_t arr[5 + 4 + 2 + 6] = {// Size, Tag