Skip to content

Commit 1d7a5f0

Browse files
committed
Updated notification-led example for latest libnx.
1 parent 4520021 commit 1d7a5f0

File tree

1 file changed

+4
-5
lines changed
  • hid/notification-led/source

1 file changed

+4
-5
lines changed

hid/notification-led/source/main.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,10 @@ int main(int argc, char* argv[])
2828
memset(&pattern, 0, sizeof(pattern));
2929

3030
// Setup the pattern data.
31-
// TODO: Update this once libnx has the struct filled in.
32-
pattern.unk_x0[0] = 0xf;
33-
pattern.unk_x0[1] = 0xf;
34-
pattern.unk_x0[2] = 0xf;
35-
pattern.unk_x0[3] = 0xf;
31+
pattern.globalMiniCycleDuration = 0xf;
32+
pattern.totalMiniCycles = 0xf;
33+
pattern.totalFullCycles = 0xf;
34+
pattern.startIntensity = 0xf;
3635

3736
printf("notification-led example\n");
3837

0 commit comments

Comments
 (0)