Skip to content

Commit

Permalink
Also convert these indents to spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
arntsonl committed Dec 23, 2024
1 parent 569bffc commit 2dd653c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions headers/drivers/xinput/XInputDescriptors.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,16 @@ static const uint8_t *xinput_string_descriptors[] __attribute__((unused)) =
};

static const uint8_t * xinput_get_string_descriptor(int index) {
if ( index == 3 ) {
// Generate a serial number of hex bytes from the pico's unique ID
pico_unique_board_id_t unique_id;
pico_get_unique_board_id(&unique_id);
if ( index == 3 ) {
// Generate a serial number of hex bytes from the pico's unique ID
pico_unique_board_id_t unique_id;
pico_get_unique_board_id(&unique_id);
for(int i = 0; i < 3; i++) {
sprintf((char*)(&xinput_string_version[i*2+1]), "%02X", (uint8_t)unique_id.id[i+5]);
}
}
}

return xinput_string_descriptors[index];
return xinput_string_descriptors[index];
}

static const uint8_t xinput_device_descriptor[] =
Expand Down

0 comments on commit 2dd653c

Please sign in to comment.