From 0be511d8435d96bdefc72f9355a9670baa5d4e58 Mon Sep 17 00:00:00 2001 From: FIX94 Date: Sun, 17 Sep 2017 02:16:56 +0200 Subject: [PATCH] -added function to get raw i2c address --- include/wiidrc/wiidrc.h | 1 + source/wiidrc.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/include/wiidrc/wiidrc.h b/include/wiidrc/wiidrc.h index 875610d..e556338 100644 --- a/include/wiidrc/wiidrc.h +++ b/include/wiidrc/wiidrc.h @@ -44,6 +44,7 @@ bool WiiDRC_Init(); bool WiiDRC_Inited(); bool WiiDRC_Recalibrate(); bool WiiDRC_ScanPads(); +const u8 *WiiDRC_GetRawI2CAddr(); const struct WiiDRCData *WiiDRC_Data(); u32 WiiDRC_ButtonsUp(); u32 WiiDRC_ButtonsDown(); diff --git a/source/wiidrc.c b/source/wiidrc.c index 62d7c27..3c66f9b 100644 --- a/source/wiidrc.c +++ b/source/wiidrc.c @@ -98,6 +98,10 @@ bool WiiDRC_ScanPads() return true; } +const u8 *WiiDRC_GetRawI2CAddr() +{ + return __WiiDRC_I2CBuf; +} const struct WiiDRCData *WiiDRC_Data() { return &__WiiDRC_PadData;