From 1d7a5f04df4761082d67a22d36dc2a45308c618f Mon Sep 17 00:00:00 2001 From: yellows8 Date: Fri, 26 Apr 2019 21:51:19 -0400 Subject: [PATCH] Updated notification-led example for latest libnx. --- hid/notification-led/source/main.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/hid/notification-led/source/main.c b/hid/notification-led/source/main.c index 8b4447b..622705f 100644 --- a/hid/notification-led/source/main.c +++ b/hid/notification-led/source/main.c @@ -28,11 +28,10 @@ int main(int argc, char* argv[]) memset(&pattern, 0, sizeof(pattern)); // Setup the pattern data. - // TODO: Update this once libnx has the struct filled in. - pattern.unk_x0[0] = 0xf; - pattern.unk_x0[1] = 0xf; - pattern.unk_x0[2] = 0xf; - pattern.unk_x0[3] = 0xf; + pattern.globalMiniCycleDuration = 0xf; + pattern.totalMiniCycles = 0xf; + pattern.totalFullCycles = 0xf; + pattern.startIntensity = 0xf; printf("notification-led example\n");