summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshinyquagsire23 <mtinc2@gmail.com>2017-09-10 21:46:26 -0600
committershinyquagsire23 <mtinc2@gmail.com>2017-09-10 21:46:26 -0600
commit9218c2ce16777bba33fea2b606c5805553d190de (patch)
tree8a1d148c15c920d6f61a09e0cfd8ee0fd316beab /src
parentdac306c5e91ad8309bb0246d61204f8670e15955 (diff)
Decompile to STWI_send_TestModeREQ
Diffstat (limited to 'src')
-rw-r--r--src/librfu.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/librfu.c b/src/librfu.c
index 67b76b0d9..00dde830b 100644
--- a/src/librfu.c
+++ b/src/librfu.c
@@ -36,7 +36,7 @@ enum
RFU_UNK2E,
RFU_UNK2F,
RFU_DISCONNECT,
- RFU_UNK31,
+ RFU_TEST_MODE,
RFU_UNK32,
RFU_UNK33,
RFU_UNK34,
@@ -534,3 +534,14 @@ void STWI_send_DisconnectREQ(u8 unk)
STWI_start_Command();
}
}
+
+void STWI_send_TestModeREQ(u8 unk0, u8 unk1)
+{
+ if (!STWI_init(RFU_TEST_MODE))
+ {
+ gRfuState->txParams = 1;
+ gRfuState->txPacket->data[0] = unk0 | (unk1 << 8);
+
+ STWI_start_Command();
+ }
+}