mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-05 10:52:15 +02:00
nfc: misc changes
This commit is contained in:
parent
a02b00f167
commit
d3c2cd223a
@ -88,7 +88,7 @@ typedef struct {
|
||||
} PACKED NfpuMiiCharInfo;
|
||||
|
||||
typedef struct {
|
||||
NfpuMiiCharInfo mii_char_info;
|
||||
NfpuMiiCharInfo mii;
|
||||
u16 first_write_year;
|
||||
u8 first_write_month;
|
||||
u8 first_write_day;
|
||||
|
@ -487,8 +487,10 @@ Result nfpuListDevices(u32 *count, HidControllerID *out, size_t num_elements) {
|
||||
|
||||
rc = resp->result;
|
||||
|
||||
if (R_SUCCEEDED(rc) && count && out) {
|
||||
if (R_SUCCEEDED(rc) && count)
|
||||
*count = resp->count;
|
||||
|
||||
if (R_SUCCEEDED(rc) && out) {
|
||||
for (size_t i=0; i<num_elements; i++)
|
||||
out[i] = hidOfficialToControllerID(buf[i]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user