Skip to content

Fix loading of custom LEDs settings#348

Merged
nefarius merged 17 commits intonefarius:masterfrom
Kanuan:custom-leds-fix
Apr 24, 2024
Merged

Fix loading of custom LEDs settings#348
nefarius merged 17 commits intonefarius:masterfrom
Kanuan:custom-leds-fix

Conversation

@Kanuan
Copy link
Copy Markdown
Collaborator

@Kanuan Kanuan commented Apr 21, 2024

This PR fixes the logic used for loading each Player LED settings from the disk configuration file. (related to #260 )

Besides that, I've renamed some variables to reflect the actual functioning of the LED effects as discussed in #314 . The chosen names are:

  • TotalDuration
  • BasePortionDuration1
  • BasePortionDuration0
  • OffPortionMultiplier
  • OnPortionMultiplier

Because the base portion duration is a 2 byte value represented by BasePortionDuration1 and BasePortionDuration0 I've considered turning it into an array BasePortionDuration[2]. Tell me if it would be better and I'll update the PR

@nefarius
Copy link
Copy Markdown
Owner

If BasePortionDuration is effectively one 16bit value, make it an USHORT. Beware of byte order though when setting it.

@nefarius nefarius merged commit 787f89c into nefarius:master Apr 24, 2024
@Kanuan Kanuan deleted the custom-leds-fix branch April 24, 2024 12:56
@nefarius nefarius added this to the Version 3 milestone May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants