summaryrefslogtreecommitdiff
path: root/src/code/padsetup.c
diff options
context:
space:
mode:
authorTharo <17233964+Thar0@users.noreply.github.com>2022-09-03 01:52:13 +0100
committerGitHub <noreply@github.com>2022-09-03 02:52:13 +0200
commit6b77ddba5ae0941c10c58260c44270dfcb88e182 (patch)
tree824d27ec4e9d60eca657b2739c8ddf7fab17a90d /src/code/padsetup.c
parentc0cf83a814d13a9a07a2ca260203134fc4c5b735 (diff)
More documentation for padmgr.c (#1336)
* More documentation for padmgr.c * Update comments * Further suggested changes * Suggested changes * LOG_SEVERITY_INFO -> LOG_SEVERITY_CRITICAL * Adjust PadMgr_RequestPadData comment * Avoid array notation for args, adjust comment, rename the FaultMgr padInput field to inputs to better reflect it's an array
Diffstat (limited to 'src/code/padsetup.c')
-rw-r--r--src/code/padsetup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/code/padsetup.c b/src/code/padsetup.c
index e4e8a0d68..20a546ae3 100644
--- a/src/code/padsetup.c
+++ b/src/code/padsetup.c
@@ -9,16 +9,16 @@ s32 PadSetup_Init(OSMesgQueue* mq, u8* outMask, OSContStatus* status) {
if (ret != 0) {
return ret;
}
+
if (*outMask == 0xFF) {
if (osContStartQuery(mq) != 0) {
return 1;
}
-
osRecvMesg(mq, NULL, OS_MESG_BLOCK);
osContGetQuery(status);
*outMask = 0;
- for (i = 0; i < 4; i++) {
+ for (i = 0; i < MAXCONTROLLERS; i++) {
switch (status[i].errno) {
case 0:
if (status[i].type == CONT_TYPE_NORMAL) {