Skip to content

Commit

Permalink
Format: newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
Sapd committed Mar 18, 2024
1 parent a38c051 commit 5dd1ed8
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 13 deletions.
1 change: 1 addition & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ Language: Cpp
BasedOnStyle: WebKit
AlignConsecutiveMacros: true
AlignConsecutiveAssignments: true
InsertNewlineAtEOF: true
...
2 changes: 1 addition & 1 deletion src/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,4 +429,4 @@ int dev_main(int argc, char* argv[])
free(sendbuffer);

return 0;
}
}
2 changes: 1 addition & 1 deletion src/dev.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#pragma once

int dev_main(int argc, char* argv[]);
int dev_main(int argc, char* argv[]);
2 changes: 1 addition & 1 deletion src/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ const char capabilities_str_short[NUM_CAPABILITIES]
[CAP_EQUALIZER] = 'e',
[CAP_MICROPHONE_MUTE_LED_BRIGHTNESS] = 't',
[CAP_MICROPHONE_VOLUME] = 'o'
};
};
2 changes: 1 addition & 1 deletion src/devices/headsetcontrol_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,4 @@ static int headsetcontrol_test_request_chatmix(hid_device* device_handle)
static int headsetcontrol_test_set_inactive_time(hid_device* device_handle, uint8_t minutes)
{
return TESTBYTES_SEND;
}
}
2 changes: 1 addition & 1 deletion src/devices/headsetcontrol_test.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#pragma once

void headsetcontrol_test_init(struct device** device);
void headsetcontrol_test_init(struct device** device);
2 changes: 1 addition & 1 deletion src/devices/hyperx_calphaw.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ static BatteryInfo calphaw_request_battery(hid_device* device_handle)

if (calphaw_request_charge(device_handle) == 1) {
info.status = BATTERY_CHARGING;
info.level = -1;
info.level = -1;
return info;
}

Expand Down
2 changes: 1 addition & 1 deletion src/devices/logitech_gpro_x2.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ static int gpro_x2_send_inactive_time(hid_device* device_handle, uint8_t num)
uint8_t inactive_time_data[11] = { 0x51, 0x09, 0x00, 0x03, 0x1c, 0x00, 0x04, 0x00, 0x06, 0x1d, num };

return hid_write(device_handle, inactive_time_data, sizeof(inactive_time_data) / sizeof(inactive_time_data[0]));
}
}
2 changes: 1 addition & 1 deletion src/devices/steelseries_arctis_nova_3.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,4 @@ static int arctis_nova_3_send_microphone_volume(hid_device* device_handle, uint8
hid_send_feature_report(device_handle, volume, MSG_SIZE);

return hid_send_feature_report(device_handle, SAVE_DATA, MSG_SIZE);
}
}
2 changes: 1 addition & 1 deletion src/hid_utility.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@ void terminate_hid(hid_device** handle, char** path)
}

hid_exit();
}
}
2 changes: 1 addition & 1 deletion src/hid_utility.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ char* get_hid_path(uint16_t vid, uint16_t pid, int iid, uint16_t usagepageid, ui
* Helper freeing HID data and terminating HID usage.
*/
/* This function is explicitly called terminate_hid to avoid HIDAPI clashes. */
void terminate_hid(hid_device** handle, char** path);
void terminate_hid(hid_device** handle, char** path);
4 changes: 2 additions & 2 deletions src/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ void initializeHeadsetInfo(HeadsetInfo* info, struct device* device)
for (int i = 0; i < NUM_CAPABILITIES; i++) {
if (device->capabilities & B(i)) { // Check if the ith capability is supported
info->capabilities_enum[info->capabilities_amount] = i;
info->capabilities[info->capabilities_amount] = capabilities_str_enum[i];
info->capabilities_str[info->capabilities_amount] = capabilities_str[i];
info->capabilities[info->capabilities_amount] = capabilities_str_enum[i];
info->capabilities_str[info->capabilities_amount] = capabilities_str[i];
info->capabilities_amount++;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/utility.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,4 +211,4 @@ int asprintf(char** str, const char* fmt, ...)
return ret;
}

// ----------------- -------------------- -----------------
// ----------------- -------------------- -----------------

0 comments on commit 5dd1ed8

Please sign in to comment.