nfc: misc changes

This commit is contained in:
averne 2019-02-03 20:50:30 +01:00 committed by fincs
parent a02b00f167
commit d3c2cd223a
2 changed files with 7 additions and 5 deletions

View File

@ -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;

View File

@ -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]);
}