Custom payloads for Slash Lighting

This commit is contained in:
Serge
2024-04-26 13:46:47 +02:00
parent 7e523d02c0
commit e52ee2094c
2 changed files with 15 additions and 3 deletions

View File

@@ -103,7 +103,14 @@ namespace GHelper.AnimeMatrix
switch ((SlashMode)running)
{
case SlashMode.Static:
deviceSlash.SetStatic(brightness);
var custom = AppConfig.GetString("slash_custom");
if (custom is not null && custom.Length > 0)
{
deviceSlash.SetCustom(AppConfig.StringToBytes(custom));
} else
{
deviceSlash.SetStatic(brightness);
}
break;
default:
deviceSlash.SetMode((SlashMode)running);